Search
Programming languages
Home
C#
How can I cast string to enum?
Code examples
0
0
How can I cast string to enum?
YourEnum foo = (YourEnum) Enum.Parse(typeof(YourEnum), yourString);
Similar pages
Similar pages with examples
convert from string to enum
In other languages
This page is in other languages
empty row
Русский
..................................................................................................................
Ссылка
Italiano
..................................................................................................................
Link
Polski
..................................................................................................................
Link
Română
..................................................................................................................
Legătură
한국어
..................................................................................................................
링크
हिन्दी
..................................................................................................................
लिंक
Français
..................................................................................................................
Lien
Türk
..................................................................................................................
Atıf
Česk
..................................................................................................................
Odka
Português
..................................................................................................................
Referênci
ไทย
..................................................................................................................
เชื่อมโยง
中文
..................................................................................................................
链接
Español
..................................................................................................................
Referencia
Slovenský
..................................................................................................................
Odkaz
Балгарскі
..................................................................................................................
Спасылка
Íslensk
..................................................................................................................
Link
Popular in the category
Popular pages with examples in the category
empty row
c# oracle insert date as string
c sharp type in word and calculate how much a letter is inside that word
how to get data between two brackets in c#
convert text to number C#
Convert string int Linq
enums as numbers c#
c# sanitize string
feet to meters c#
blend colors in C#
c# string to control name
c# only letters
How can I cast int to enum?
c# string with slash
attribute decorator to require email format of string c#
Printing pattern in c#
change line color in c#