title: VB.net - "Dim x as new Y()" vs "Dim x as Y = new Y()"
body: <p>In our VB.net codebase I occasionally see <code>Dim x as new Y()</code>, where Y is a class.</p>
  
  <p>What is this code doing and how does it differ to the more common <code>Dim x as Y = new Y()"</code>?</p>
  
  <p>Thanks.</p>