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 |
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.