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
objectobjectA source object to clone.
Returns
Clone<T>(object)
public static T Clone<T>(object @object)
Parameters
objectobject
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
objectTA source object to clone.
Returns
- T
Type Parameters
TA type of object that need to be returned.