Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-287800: Invert if - better control flow graph inspection

$
0
0
Reporter Alexander Shvedov (shvedov) Alexander Shvedov (shvedov)
Created Jan 16, 2012 4:42:21 PM
Updated Jan 16, 2012 9:09:49 PM
Resolved Jan 16, 2012 6:08:36 PM
Priority Major
Type Usability Problem
Fix versions Next
State Fixed
Assignee Evgeny Pasynkov (pasynkov)
Subsystem Context actions
Affected versions 6.1
Fixed in build 6.5.1.2465
    public string Name
    {
      get { return myName; }
      set
      {
        if (myName == value)
        {
          myName = value;
          NotifyChanged("Name");
        }
      }
    }


after invert:

    public string Name
    {
      get { return myName; }
      set
      {
        if (myName != value)
        {
        }
        else
        {
          myName = value;
          NotifyChanged("Name");
        }
      }
    }


looks bad, isn't it?

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>