Table of Contents

Class Cloner

Namespace
Lime
Assembly
Lime.dll

Utility class that contain methods for cloning objects.

public static class Cloner
Inheritance
Cloner
Inherited Members

Methods

Clone(object)

Clone the object. If source object implements ICloneable then the method will return object produced by ICloneable.Clone(). Otherwise Serialization.Clone() will be used.

public static object Clone(object @object)

Parameters

object object

A source object to clone.

Returns

object

Clone<T>(object)

public static T Clone<T>(object @object)

Parameters

object object

Returns

T

Type Parameters

T

Clone<T>(T)

Clone the object. If source object implements ICloneable then the method will return object produced by ICloneable.Clone(). Otherwise Serialization.Clone() will be used.

public static T Clone<T>(T @object)

Parameters

object T

A source object to clone.

Returns

T

Type Parameters

T

A type of object that need to be returned.