Month: June 2007

Learning LINQ

Learning LINQ and the various nuances, including how C# 3.0 features are leveraged. Anonymous Types var test = new {Field1=value1, Field2=value2}; var fullName = new {FirstName=”Susan”, LastName=”Howe”}; Extension Methods List customers = new List(); customers.Add(new Customer(1,”Roger”,”Minnesota”)); customers.Add(new Customer(2,”Susan”,”San Francisco”)); customers.Add(new Customer(3,”Hector”,”New York”)); var abe = collection.Single(c => c.Name.Equals(“Hector”)); Lambda Expressions (int i) => {return i […]

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> LINQ | Comments Off on Learning LINQ