We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is
Having the following expression:
var obj = new GetSome(); if (!(obj is null)) { }
I'm getting a suggestion:
Statement must not use unnecessary parenthesis.
Removing the parenthesis:
var obj = new GetSome(); if (!obj is null) { }
leads to a compiler error:
Error CS0023 Operator '!' cannot be applied to operand of type 'Foo'
The version I'm using:
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="All" />
The text was updated successfully, but these errors were encountered:
The obj is null is a C# 7 language construct. StyleCop.Analyzers 1.0.2 does not support c# 7, 1.1.0-beta releases are meant for that.
obj is null
Sorry, something went wrong.
No branches or pull requests
Having the following expression:
I'm getting a suggestion:
Removing the parenthesis:
leads to a compiler error:
The version I'm using:
The text was updated successfully, but these errors were encountered: