George T
2
Q:

c# string enum

Enum.TryParse("Active", out StatusEnum myStatus);
2
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
2

New to Communities?

Join the community