Enum.Clone Method

Definition

Throws CloneNotSupportedException.

[Android.Runtime.Register("clone", "()Ljava/lang/Object;", "")]
protected override sealed Java.Lang.Object Clone ();
[<Android.Runtime.Register("clone", "()Ljava/lang/Object;", "")>]
override this.Clone : unit -> Java.Lang.Object

Returns

(never returns)

Attributes

Exceptions

is always thrown.

Remarks

Throws CloneNotSupportedException. This guarantees that enums are never cloned, which is necessary to preserve their "singleton" status.

Java documentation for java.lang.Enum.clone().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to