I am looking for a best practice on how to create enum-like class that instead of numbers contains string values. Something like this:
public static class CustomerType
{
public static string Type1 = "Customer Type 1";
public static string Type2 = "Customer Type 2";
}
I would use this class throughout application as a value for all cases where I need CustomerType. I cannot use Enum because this is legacy system, and values like this are hardcoded everywhere, I am just trying to centralize them in one place.
Question is, in above example, should I use for declaring a variable:
- static read-only keyword
- const keyword
- or just static
What would be a best practice to set these kinds of classes and values?