how to get list of enum in c# code example
Example 1: c# get enum in list
Enum.GetValues(typeof(SomeEnum)).Cast<SomeEnum>();
Example 2: how to make a enum list in c#
List<Days> days = Enum.GetValues(typeof(Days))
.Cast<Days>()
.ToList();