Answers for "c# enum get all values in list"

C#
0

enum get all values C#

//typed
var values = Enum.GetValues(typeof(Foos)).Cast<Foos>()
Posted by: Guest on April-28-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