Aardvark.Base


EnumHelpers

Static members

Static memberDescription
GetIndex(enumValue)
Signature: enumValue:'T -> int
Type parameters: 'T

Return the index of the enumeration value

GetIndex(enumType, enumValue)
Signature: (enumType:Type * enumValue:obj) -> int

Return the index of the enumeration value

GetNextValue(enumValue)
Signature: enumValue:'T -> 'T
Type parameters: 'T

Returns the next value of the enumeration or the first when the current value is the last one.

GetPrevValue(enumValue)
Signature: enumValue:'T -> 'T
Type parameters: 'T

Returns the previous value of the enumeration or the last when the current value is the first one.

GetValue(enumType, index)
Signature: (enumType:Type * index:int) -> int

Returns the enumeartion value of a certain index

GetValue(index)
Signature: index:int -> 'T
Type parameters: 'T

Returns the enumeartion value of a certain index

Fork me on GitHub