Show / Hide Table of Contents

    Interface ICloneable<T>

    Supports cloning, which creates a new instance of the same type with the same value as an existing instance.

    Namespace: OPTANO.Modeling.Common
    Assembly: Common.dll
    Syntax
    public interface ICloneable<T> : ICloneable
    Type Parameters
    Name Description
    T

    The type of the original instance.

    Methods

    Clone()

    Creates a new object of type T that is a copy of the current instance.

    Declaration
    T Clone()
    Returns
    Type Description
    T

    A new object of type T that is a copy of this instance.

    Remarks

    Clone can be implemented either as a deep copy or a shallow copy. In a deep copy, all objects are duplicated; whereas, in a shallow copy, only the top-level objects are duplicated and the lower levels contain references.

    Extension Methods

    ReflectionHelper.GetFieldValue(Object, String)
    ReflectionHelper.SetFieldValue(Object, String, Object)
    ExtensionMethods.Clone<T>(T)
    ExtensionMethods.ThrowIfArgumentIsNull<T>(T, String)
    Back to top Copyright © OPTANO GmbH generated with DocFX
    Privacy Policy | Impressum – Legal Notice