Try to create a deep clone of an Array or a standard clone of a scalar. The object may comprise arrays of any primitive type or any Object type which implements Cloneable. However, if the Object is some kind of collection, e.g., a Vector then only a shallow copy of that object is made. I.e., deep refers only to arrays.
Namespace: nom.tam.util
Assembly: CSharpFITS_v1.1 (in CSharpFITS_v1.1.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function DeepClone( _ ByVal o As Object _ ) As Object |
C# |
---|
public static object DeepClone( object o ) |
C++ |
---|
public: static Object DeepClone( Object o ) |
J# |
---|
public static object DeepClone( object o ) |
JScript |
---|
public static
function DeepClone( o : Object ) : Object |
Parameters
- o
- The object to be copied.