Code Inspection: Using of coerced equality
== with a stricter identity operator
=== is a good practice because
== may work unpredictably — the reason is that the
== operator performs type coercing (conversion) before comparison, which may lead to unexpected results of comparison. The identity operator
===, which works only with operands of identical type, prevents such errors. You can learn more about these operators in the answers to this StackOverflow question.
In the example, JetBrains Rider recommends using the identity operator:
After the quick-fix