c# get enum in list

C#
Enum.GetValues(typeof(SomeEnum)).Cast<SomeEnum>();
Source

Also in C#: