Skip to content

Warning potential null in fields, variables and arguments #96

@ElemarJR

Description

@ElemarJR
void Foo(string s)
{
   return s.SomeMethod();
}

becomes

void Foo(string s)
{
   return s?.SomeMethod();
}

Diagnostic id is CC0040
Category is Reliability.
Severity is: Info.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions