title: What to use: var or object name type?
body: <p>this is a question that when programming I always wonder: What to use when we are writing code: </p>
  
  <pre><code>var myFiles = Directory.GetFiles(fullPath);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>string[] myFiles = Directory.GetFiles(fullPath);
  </code></pre>
  
  <p><strong><em>var</em></strong> is new and is a <em>Implicitly Typed Local Variables</em>, so we can only use locally and it has rules like can't be null, etc., but I wonder if we get any advantage of using it "normally". </p>
  
  <p>The "normally" part says, not in <strong>Anonymous Types</strong>, <strong>Object and Collection Initializers</strong> and <strong>Query Expressions</strong> where that was the intent to use the var anonymous object, so what I mean is... just like the example above.</p>
  
  <p>what are your thoughts?</p>