Something that makes things a little more clear and easy to work with is if you define the enum in terms of powers of 2.
[Flags] public enum errors { Name = 2^0, Date = 2^1, Time = 2^2, // etc. }
Sadly, C# lacks a power operator.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Something that makes things a little more clear and easy to work with is if you define the enum in terms of powers of 2.
Sadly, C# lacks a power operator.