Today I was working at a comparison operator when I noticed Resharper highlighting the entire function block content. After looking into it; I can not figure out:
- Why it takes issue with this particular piece of code.
- How the proposed solution would do anything other than ruin my code.
Therefore, I would like some feedback from you. I suspect it's a bug; but maybe I am missing something. Below are three images; first is my comparison operator function with the warning message:
Here is an image showing the proposed solution:
Here is an image showing the result of that proposed solution:
Any feedback is appreciated!