'DeclarationPublic Overloads Overridable Function Clone() As System.Object
public virtual System.object Clone()
'DeclarationPublic Overloads Overridable Function Clone() As System.Object
public virtual System.object Clone()
This method makes a Shallow Copy of the DicomDataSet
A shallow copy will only have the top level objects replicated, any referenced objects under the top level will be shared by the original DicomDataSet and the cloned copy.
// Load an original dataset from file DicomDataSet original = new DicomDataSet("Dataset.dcm"); // Clone the dataset for safe modifications DicomDataSet cloned = original.Clone() as DicomDataSet; // Example: Add a tag to the cloned dataset without affecting the original cloned.Add(Keyword.InstitutionName, "Temporary Testing Site"); // Save the modified clone cloned.Save("ClonedModifiedDataset.dcm");