ardalis / SmartEnum

A base class for quickly and easily creating strongly typed enum replacements in C#.
MIT License
2.17k stars 170 forks source link

Use canonical null checks. #519

Open fiseni opened 5 months ago

fiseni commented 5 months ago

We should update all null checks to use the canonical is null and is not null. This is especially important since we've extensively overloaded the operators in the library, and it's easy to introduce a trivial bug.