Understanding Anonymous Types : Anonymous Types « LINQ « ASP.NET Tutorial






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"}








17.1.Anonymous Types
17.1.1.Understanding Anonymous Types