SyntaxFix
Write A Post
Hire A Developer
Questions
For a simple enum of string values (or any other type):
public static class MyEnumClass { public const string MyValue1 = "My value 1", MyValue2 = "My value 2"; }
Usage: string MyValue = MyEnumClass.MyValue1;
string MyValue = MyEnumClass.MyValue1;