Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get enum int by name

int enumInt = (int) Enum.Parse(typeof(Your_Enum), string_name);
 
PREVIOUS NEXT
Tagged: #enum #int
ADD COMMENT
Topic
Name
1+9 =