Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

reflection get enum value C#

object underlyingValue = Convert.ChangeType(value, Enum.GetUnderlyingType(value.GetType()));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reflection #enum
ADD COMMENT
Topic
Name
4+1 =