Enum addition vs subtraction and casting
Good question – I was surprised that the first and third lines worked. However, they are supported in the C# language specification – in section 7.8.4, it talks about enumeration addition: Every enumeration type implicitly provides the following pre-defined operators, where E is the enum type and U is the underlying type of E: E … Read more