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