Enum.Clone Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.