/ Published in: C#
Examples of converting from a string to an enum value and back
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//convert enum to string. mode is an Enum of type PageModeEnum. //Enum.GetName returns the name the mode is set to //convert a string to an emum. //buttonState is the string //ButtonState is the enum type