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
decimal? baz = null; if (baz != null && baz > 0) // no RCS1146 { Console.WriteLine("baz"); }
The text was updated successfully, but these errors were encountered:
RCS1146 is called UseConditionalAccess. Where do you want to use conditional access in your code?
Sorry, something went wrong.
Apologies Josef, I got confused - this is actually a feature request.
Essentially, the following pattern:
Nullable<T> thing; T thingValue; var validValue = thing.HasValue /* or "thing != null" */ && thing.Value > thingValue;
can be simplified to:
Nullable<T> thing; T thingValue; var validValue = thing > thingValue;
and it would be useful if Roslynator could add this.
c26a06d
No branches or pull requests
The text was updated successfully, but these errors were encountered: