title: Can you use unnamed, one-line objects in VB.NET without passing them as arguments or something?
body: <p>I thought I remembered using unnamed, one-line objects in VB.NET without passing them as arguments or anything.  For instance:</p>
  
  <pre><code>New SqlCommand("some string", someSqlConnection)
  </code></pre>
  
  <p>does not compile, and neither does this:</p>
  
  <pre><code>(New SqlCommand("some string", someSqlConnection))
  </code></pre>
  
  <p>In the second case, the added parantheses will allow you to call functions on that object and pass their return values as arguments to other functions, but it doesn't work when the object or one of its functions is not being used as an argument to another function.</p>
  
  <p>However this does compile:</p>
  
  <pre><code>someFunction(New SqlCommand("some string", someSqlConnection))
  </code></pre>
  
  <p>Is there a way to get around that restriction?  In other words, without wrapping function calls around them or adding more lines of code?  If not, I wonder why this would've been left out of the language?</p>