Just a quickie since I always seem to forget this one:
Enum.GetValues(typeof(MyEnum)).Cast<MyEnum>()
This will create an IEnumerable<MyEnum>
that can then be converted to a list or whatever.
Just a quickie since I always seem to forget this one:
Enum.GetValues(typeof(MyEnum)).Cast<MyEnum>()
This will create an IEnumerable<MyEnum>
that can then be converted to a list or whatever.