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
Given the following code, where Data is a class type with an IDictionary<> named Dictionary defined on it:
Data
IDictionary<>
Dictionary
return data != null && data.Dictionary.TryGetValue(value, out result) ? result as T : null;
Roslynator 1.2.13 in VS 2017 RC flags this as RCS1146 and applies the following refactoring:
data?.Dictionary.TryGetValue(value, out result == true ? result as T : null
But this causes a syntax error due to the missing right parenthesis after out result, the correct code is:
out result
data?.Dictionary.TryGetValue(value, out result) == true ? result as T : null
The text was updated successfully, but these errors were encountered:
d1082bc
Thanks for the report @IanKemp !
Sorry, something went wrong.
Fix #42: Bug in code fix for analyzer UseConditionalAccess.
3ce49b0
josefpihrt
No branches or pull requests
Given the following code, where
Data
is a class type with anIDictionary<>
namedDictionary
defined on it:Roslynator 1.2.13 in VS 2017 RC flags this as RCS1146 and applies the following refactoring:
But this causes a syntax error due to the missing right parenthesis after
out result
, the correct code is:The text was updated successfully, but these errors were encountered: