ASP.NET Tutorial/LINQ/Anonymous Types

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

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