DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSHARP
Get enum value from string or int
MyEnum myEnum = (MyEnum)myInt; MyEnum myEnum = (MyEnum)Enum.Parse(typeof(MyEnum), myString);
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Get
#enum
#string
#int
ADD COMMENT
Topic
COMMENT
Name
5+1 =
Submit