Wrong Refactoring

ReSharper suggests to refactor this:

 with

to this:

which is not the same because the second logical part of the if-clause is negated.

 Bests regards

Marco

1
1 comment

Hello Marco!

 

Thank you for contacting us.

Could you please provide some more extended code sample? I cannot reproduce the problem on my side as ReSharper produces different code in case of this suggestion.

Could you please also specify ReSharper version you are using?

Thank you.

0

Please sign in to leave a comment.