DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomLabelCollection Class / Clone Method / Clone(Boolean) Method

Controls whether a Shallow copy or a Deep copy is to be returned


In This Topic
    Clone(Boolean) Method
    In This Topic
    Returns a copy of the DicomLabelCollection
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function Clone( _
       ByVal Deep As System.Boolean _
    ) As System.Object
    public virtual System.object Clone( 
       System.bool Deep
    )

    Parameters

    Deep

    Controls whether a Shallow copy or a Deep copy is to be returned

    Return Value

    Remarks

    If Deep is true, then returns a Deep copy of the DicomLabelCollection, otherwise returns a Shallow copy.

    A Deep copy will have all referenced objects of all levels cloned, where a Shallow copy will only have the top level referenced objects cloned.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also