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
Best explained in a picture:
This only happens if there's trailing boolean logic afterwards. Here's a minimal repro:
public class A { public bool Prop { get; } public static GetProp(A obj) { if (obj != null && obj.Prop && true) { Console.WriteLine("Hey!"); } } }
Currently, RCS1146 refactors this to:
if (obj?.Pro == true && true) { Console.WriteLine("Hey!"); }
Relevant code link: UseConditionalAccessRefactoring.cs#L139
The text was updated successfully, but these errors were encountered:
This has been fixed in #42.
Sorry, something went wrong.
No branches or pull requests
Best explained in a picture:
This only happens if there's trailing boolean logic afterwards. Here's a minimal repro:
Currently, RCS1146 refactors this to:
Relevant code link: UseConditionalAccessRefactoring.cs#L139
The text was updated successfully, but these errors were encountered: