Horje
how to pass string value to enum in c# Code Example
c# get enum value from string
//This example will parse a string to a Keys value
Keys key = (Keys)Enum.Parse(typeof(Keys), "Space");
//The key value will now be Keys.Space
how to pass string value to enum in c#
MyEnum myEnum = (MyEnum)Enum.Parse(typeof(MyEnum), myString);




Csharp

Related
c# round double Code Example c# round double Code Example
c# first item i list Code Example c# first item i list Code Example
get key value from object c# Code Example get key value from object c# Code Example
table fixed header Code Example table fixed header Code Example
get property value from object c# Code Example get property value from object c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8