DicomObjects.NET.V8
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 Boolean _
    ) As Object
    'Usage
     
    Dim instance As DicomLabelCollection
    Dim Deep As Boolean
    Dim value As Object
     
    value = instance.Clone(Deep)
    public virtual object Clone( 
       bool Deep
    )
    public:
    virtual Object^ Clone( 
       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 3.5 or higher

    See Also