Android Guides | Samples

Java.Lang.Class.GetEnumConstants Method

Returns the enum constants associated with this Class.

Syntax

[Android.Runtime.Register("getEnumConstants", "()[Ljava/lang/Object;", "")]
public Object[] GetEnumConstants ()

Remarks

Returns the enum constants associated with this Class. Returns null if this Class does not represent an enum type.

[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