Answers for "c# enum list"

C#
1

c# convert enum to list

Enum.GetValues(typeof(SomeEnum)).Cast<SomeEnum>();
Posted by: Guest on December-03-2020
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

enum in c#

enum Itemtype 
{
	Use,
    Loot,
    Equip,
    ETC
};
Posted by: Guest on October-14-2020

C# Answers by Framework

Browse Popular Code Answers by Language