c# enum with string as values code example
Example 1: string to enum c# 3
StatusEnum MyStatus = (StatusEnum) Enum.Parse(typeof(StatusEnum), "Active", true);
Example 2: c# string enum
public static class Status
{
public const string Awesome = "Awesome";
public const string Cool = "Cool";
}
//Not an enum but has a similar effect without needing to convert ints