C#C
C#4y ago
reeeeeee

Enum vs string const class

I have a string property, which will accept some kind of enum
Is it better to have a proper Enum and call ToString() when setting the property (public enum StatusEnum and set it p1 = StatusEnum.Status1.ToString()), or should I have a static class which will have constants, something like this
public static class StatusEnum
{
    public const string Status1 = "1";
Was this page helpful?