New to Telerik UI for WinFormsStart a free 30-day trial

Defines an object that has a modifiable state and a read-only state. Classes that derive from Cloneable can clone themselves.

Definition

Namespace:Telerik.Pivot.Core

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

C#
[DataContract]
public abstract class Cloneable

Inheritance: objectCloneable

Derived Classes: AggregateValueSettingsNode

Constructors

C#
protected Cloneable()

Methods

Creates a new instance of the Cloneable, making deep copies of the object's values.

C#
public Cloneable Clone()
Returns:

Cloneable

A clone of the current object.

Makes the instance a clone (deep copy) of the specified Cloneable.

C#
protected abstract void CloneCore(Cloneable source)
Parameters:sourceCloneable

The object to clone.

Remarks:

Notes to Inheritors If you derive from Cloneable, you may need to override this method to copy all properties. It is essential that all implementations call the base implementation of this method (if you don't call base you should manually copy all needed properties including base properties).

When implemented in a derived class, creates a new instance of the Cloneable derived class.

C#
protected abstract Cloneable CreateInstanceCore()
Returns:

Cloneable

New instance for cloning.

Remarks:

Do not call this method directly (except when calling base in an implementation). This method is called internally by the Clone() method whenever a new instance of the Cloneable is created. Notes to Inheritors. Every Cloneable derived class must implement this method. A typical implementation is to simply call the default constructor and return the result.