Dim orders = From tt In testTable _
Order By tt.Item("OrderNumber") _
Select New With {.OrderNo = tt.Item("OrderNumber"), .OrderId = tt.Item("OrderId")}
If I got the VB.NET syntax correctly
This returns an anonymous type if you want to return an existing type that you are replacing with Withthis type.
source
share