title: Why use var instead of the class name?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/209199/whats-the-point-of-the-var-keyword">What&#39;s the point of the var keyword?</a><br>
    <a href="https://stackoverflow.com/questions/3425966/what-advantages-does-using-var-have-over-the-explicit-type-in-c">What advantages does using var have over the explicit type in C#?</a>  </p>
  </blockquote>
  
  
  
  <p>I always see other people producing code like:</p>
  
  <blockquote>
    <p>var smtp = new SmtpClient();</p>
  </blockquote>
  
  <p>But why use <code>var</code> instead of <code>SmtpClient</code> in this case? I <b>ALWAYS</b> use </p>
  
  <blockquote>
    <p>SmtpClient smtp = new SmtpClient();</p>
  </blockquote>
  
  <p>Is <code>var</code> more efficient? Why use <code>var</code> instead of the actual variable type? Am I missing something?</p>