Mega Code Archive
Categories
/
ASP.Net Tutorial
/
LINQ
Understanding Anonymous Types
var customer = new {FirstName = "Stephen", LastName = "Walther"}; Here's how you would create the same anonymous type in VB.NET: Dim customer = New With {.FirstName = "Stephen", .LastName = "Walther"}