title: Does inverting the "if" improve performance?
body: <p>I've been using <a href="http://www.jetbrains.com/resharper/">ReSharper</a> for a while now and sometimes it suggests that I invert the <code>if</code>. I guess an example would be a better explanation of my situation:</p>
  
  <pre><code>public void myfunction(int exampleParam){
      if(exampleParam &gt; 0){
          //Do something with form controls for example.
      }
  }
  </code></pre>
  
  <p>Now ReSharper suggests that I invert the <code>if</code> to this:</p>
  
  <pre><code>public void myfunction(int exampleParam){
      if(exampleParam &lt;= 0)
          return;
      //Do something with form controls for example
  }
  </code></pre>
  
  <p>Does this "improve" performance somehow? Or is it just aesthetic?</p>