Tools: String Manipulations Find Dupes My IP Json Formatter Lorem Ipsum More...
Discussion Options
ajax animation

C#: Convert String to Enum in .NET

6/25/2018 8:53:26 PM by: CodeLocker
View Copy: Content Copied
var enumValue = (My_Enum_Values)System.Enum.Parse(typeof(My_Enum_Values), "string value of enum");
Copy: Content Copied
ajax animation

Get Coding

Store your first code or add more code to your collection.
You must login to report abuse. ×