Skip to content

Is/should there a code-style for avoiding null on left side of a binary expression? #40561

Description

@elachlan

Is there are code-style for avoiding null on left side of a binary expression? If not an explicit requirement, maybe a guideline?
https://github.com/dotnet/runtime/blob/master/docs/coding-guidelines/coding-style.md
https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1098.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-MetaquestionAnswer questions and provide assistance, not an issue with source code or documentation.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions