title: VS2010's "Public Property <PropertyName> As <DataType> vs. Public var
body: <p>In VS2008, I used to type</p>
  
  <pre><code>Public Property &lt;PropName&gt; As &lt;dataType&gt; 
  </code></pre>
  
  <p>and hit the Enter key and the IDE editor would automatically expand it out to a full blown property block.</p>
  
  <p>Now, from what I understand, a new feature of 2010 is that the compiler automatically "expands" the short syntax above into the same IL code that you would get with the full property GET AND SET sub methods that were are accustomed to seeing before in the editor. </p>
  
  <p>But functionality, how the heck is this any different than just having a Public class level variable? If the only diff is what it compiles to and if otehrwise there is no functional difference, isn't the new way less efficient than the old since it involves more code than just having a class level memory variable?</p>
  
  <pre><code>Public &lt;Variable&gt; as &lt;DataType&gt;
  </code></pre>
  
  <p>I thought that if you weren't going to have code behind your properties that they were essentially the same. I guess the diffrenece is that they just added the keyword "Property" but functionality, their is no diff, eh?</p>