DataSet “tipados” (2/3)
•Sintaxe não-tipada:
•
•Dim rowCustomer As System.Data.DataRow
•For Each rowCustomer In MyDataSet.Tables("Customers").Rows
• Dim CN as string = CStr(rowCustomer.Fields("CompanyName"))
• Console.WriteLine(CN)
•Next
•
•Alternativa tipada:
•
•Dim rowCustomer As System.Data.DataRow
•For Each rowCustomer In MyDataSet.Customers.Rows
• Dim CN as string = rowCustomer.CompanyName
• Console.WriteLine(CN)
•Next