Android Guides | Samples

Java.Lang.Enum.Clone Method

Enum objects are singletons, they may not be cloned.

Syntax

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

Exceptions

TypeReason
CloneNotSupportedExceptionis always thrown.

Remarks

Enum objects are singletons, they may not be cloned. This method always throws a CloneNotSupportedException.

[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