Answers for "list all enum values c#"

C#
0

how to make a enum list in c#

List<Days> days = Enum.GetValues(typeof(Days))
                            .Cast<Days>()
                            .ToList();
Posted by: Guest on February-04-2021
1

c# get all enum values

var values = Enum.GetValues(typeof(Foos));
Posted by: Guest on January-09-2021

C# Answers by Framework

Browse Popular Code Answers by Language