Click or drag to resize

enumEnumT Method

Generates all the enum members of a particular enum.

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static IEnumerable<T> Enum<T>()
where T : struct, new(), IConvertible

Type Parameters

T
The enum type.

Return Value

Type: IEnumerableT
All the enum members.
Remarks

Uses reflection to generate types.

See GetValues(Type) to get the order of values

See Also