title: Why should I use var instead of a type?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/737835/resharper-and-var">ReSharper and var</a>  </p>
  </blockquote>
  
  
  
  <p>After I have installed ReSharper it demands(by warnings) that I use var whenever possible, for example</p>
  
  <pre><code>UnhandledExceptionEventArgs ue = (UnhandledExceptionEventArgs) t;
  </code></pre>
  
  <p>ReSharper wants to turn it into</p>
  
  <pre><code>var ue = (UnhandledExceptionEventArgs) t;
  </code></pre>
  
  <p>I like the first version better, is there any reason to prefer <strong>var</strong>? better performance? anything? or is it just a code style?</p>