Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Get Enum Name

//Option 1:
string m = Enum.GetName(typeof(MyEnumClass), value);
//Option 2:
string n = nameof(MyEnumClass.Value);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Get #Enum #Name
ADD COMMENT
Topic
Name
9+5 =