DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSHARP
How can I cast string to enum?
YourEnum foo = (YourEnum) Enum.Parse(typeof(YourEnum), yourString);
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#How
#I
#cast
#string
ADD COMMENT
Topic
COMMENT
Name
6+5 =
Submit