Description
Link to the issue description: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0150
Overview
This style rule flags use of the
is {type}
statement whenis not null
can be used instead. Similarly, it flags use of theis not {type}
statement in favor ofis null
. Usingis null
oris not null
improves code readability.