Imagine I have defined the following Enum:
public enum Status : byte
{
Inactive = 1,
Active = 2,
}
What’s the best practice to use enum? Should it start with 1 like the above example or start with 0 (without the explicit values) like this:
public enum Status : byte
{
Inactive,
Active
}
Framework Design Guidelines:
Framework Design Guidelines / Designing Flag Enums: