title: How to execute a LINQ statement without assigning it to a variable?
body: <p>I have the following function</p>
  
  <pre><code>Public Function GetPositionBySchoolID(ByVal SchoolID As Integer) As CPAPositionsDataTable
      Dim positions As New CPAPositionsDataTable
      Dim tmp = (From pos In PositionsAdapter.GetData()
                  Where (pos.SchoolID = SchoolID)
                  Select pos)
      tmp.ToList.ForEach(Sub(i) positions.ImportRow(i))
      Return positions
  End Function
  </code></pre>
  
  <p>And I was wondering if there is any way to cut out assigning the LINQ result to tmp and just work with the result directly, i.e.</p>
  
  <pre><code>Public Function GetPositionBySchoolID(ByVal SchoolID As Integer) As CPAPositionsDataTable
      Dim positions As New CPAPositionsDataTable
      (From pos In PositionsAdapter.GetData()
                  Where (pos.SchoolID = SchoolID)
                  Select pos).ToList.ForEach(Sub(i) positions.ImportRow(i))
      Return positions
  End Function
  </code></pre>