Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to pass string value to enum in c#

MyEnum myEnum = (MyEnum)Enum.Parse(typeof(MyEnum), myString);
 
PREVIOUS NEXT
Tagged: #pass #string #enum
ADD COMMENT
Topic
Name
1+6 =