Answers for "c# reflection get all enum values"

C#
0

enum get all values C#

//typed
var values = Enum.GetValues(typeof(Foos)).Cast<Foos>()
Posted by: Guest on April-28-2021
0

reflection get enum value C#

object underlyingValue = Convert.ChangeType(value, Enum.GetUnderlyingType(value.GetType()));
Posted by: Guest on November-02-2021

C# Answers by Framework

Browse Popular Code Answers by Language