ICloneable Interface
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Supports cloning, which creates a new instance of a class with the same value as an existing instance.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Interface ICloneable
public interface ICloneable
public interface class ICloneable
type ICloneable = interface end
public interface ICloneable
The ICloneable type exposes the following members.
Methods
Name | Description | |
---|---|---|
Clone | Creates a new object that is a copy of the current instance. |
Top
Remarks
The ICloneable interface contains one member, Clone, which is intended to support cloning beyond that supplied by MemberwiseClone. For more information about cloning, deep versus shallow copies, and examples, see the Object..::..MemberwiseClone method.