title: type var is not defined vb.net
body: <p>I found an example in C# and from my understanding there is no alternative to 'var' in VB.NET. I am trying to create a datatable that will populate depending on a LINQ command further down in my code that calls this function. I have searched for a solution, but unable to find anything that works. Any assistance on what I should use would be appreciated. Note that I do have both Option Strict and Option Infer on as well.</p>
  
  <pre><code>Private Shared Function ToDataTable(rows As List(Of DataRow)) As DataTable
      Dim table As New DataTable()
      table.Columns.Add("Title")
      table.Columns.Add("Console")
      table.Columns.Add("Year")
      table.Columns.Add("ESRB")
      table.Columns.Add("Score")
      table.Columns.Add("Publisher")
      table.Columns.Add("Developer")
      table.Columns.Add("Genre")
      table.Columns.Add("Date")
  
      For Each row As var In rows
          table.Rows.Add(row.ItemArray)
      Next
  
      Return table
  End Function
  </code></pre>