dotnet / dotnet/roslynator

Why RCS1098 is enabled by default?

Open
#183 3 comments 0 reactions 0 assignees View on GitHub
Area-Analyzers Discussion
Dominant language
C#
Stars
3.5k
Forks
294
Avg merge
2h 30m
Merged PRs (30d)
4

Description

Avoid 'null' on the left side of a binary expression

null==a in C# means ReferenceEquals(a,null)

https://stackoverflow.com/questions/34229318/should-null-be-checked-on-the-left-or-right-hand-side

https://stackoverflow.com/questions/970334/is-referenceequalsnull-obj-the-same-thing-as-null-obj

https://stackoverflow.com/questions/4850053/what-is-good-practice-for-null-reference-checks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.