Java.Lang.Object.Clone Method
Creates and returns a copy of this Object.

Syntax

[Android.Runtime.Register("clone", "()Ljava/lang/Object;", "GetCloneHandler")]
protected virtual Object Clone ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.CloneNotSupportedExceptionif this object's class does not implement the Cloneable interface.

Remarks

Creates and returns a copy of this Object. The default implementation returns a so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects. A subclass that needs to implement this kind of cloning should call super.clone() to create the new instance and then create deep copies of the nested, mutable objects.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1