Android Guides | Samples

Java.Lang.Enum.Ordinal Method

Returns the position of the enum constant in the declaration.

Syntax

[Android.Runtime.Register("ordinal", "()I", "")]
public Int32 Ordinal ()

Remarks

Returns the position of the enum constant in the declaration. The first constant has an ordinal value of zero.

[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