Enum<T>
Struct · built-in type
struct Enum<T>Facts about an enum type, all of them constants (usable in other constants too).
for (var i = 0; i < Enum<Color>.Count; i += 1) Console.WriteLine(Enum<Color>.Names[i] + " = " + (int)Enum<Color>.Values[i]);Static fields
Section titled “Static fields”| Name | Description |
|---|---|
Count |
The number of declared members (members that share a value count separately). |
Min |
The smallest value. |
Max |
The largest value. |
Values |
All members in declaration order. |
Names |
The names of the members, in declaration order. |
static int CountThe number of declared members (members that share a value count separately).
static T MinThe smallest value.
static T MaxThe largest value.
Values
Section titled “Values”static ReadOnlySlice<T> ValuesAll members in declaration order.
static ReadOnlySlice<string> NamesThe names of the members, in declaration order.