System.ICloneable

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

See Also: ICloneable Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public interface ICloneable

Remarks

The ICloneable interface enables you to provide a customized implementation that creates a copy of an existing object. The ICloneable interface contains one member, the ICloneable.Clone method, which is intended to provide cloning support beyond that supplied by object.MemberwiseClone. For more information about cloning, deep versus shallow copies, and examples, see the object.MemberwiseClone method.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0