title: C sharp code cleanup : resharper
body: <p>I just used <a href="http://www.jetbrains.com/resharper/" rel="nofollow">Resharper</a> and it made me feel as if i don't know how to code at all in C#; it gave me a lot of suggestions; few of them are:</p>
  
  <p>1) <code>SomeObject o = new SomeObject();</code></p>
  
  <p>Resharper will convert to :</p>
  
  <pre><code>var o = new SomeObject()
  </code></pre>
  
  <p>2) <code>this.Loaded += new RoutedEventHandler(MainPage_Loaded);</code></p>
  
  <p>to </p>
  
  <pre><code>this.Loaded += MainPage_Loaded;
  </code></pre>
  
  <p>3) convert my variables and putting _ in front of all instance variables.</p>
  
  <p>4) Removing class parent's name. I tested this on Silverlight.</p>
  
  <pre><code>public partial class MainPage : UserControl
  </code></pre>
  
  <p>to </p>
  
  <pre><code>public partial class MainPage
  </code></pre>
  
  <p>5) replace instance variable</p>
  
  <pre><code> this.variable = somevalue
  </code></pre>
  
  <p>to </p>
  
  <pre><code> variable = somevalue
  </code></pre>
  
  <p>Are all of these really necessary? Is it really going to affect the efficiency of my program? I mean what good is it going to do by replacing my class names with <code>var</code> keyword. After all <code>var</code> is also replaced with class name at compile time. Is it doing because it <em>has</em> been programmed to do or do these things really affect in some or another way?</p>