Fun with Linq
December 22nd, 2009I’ve been playing with Linq a bit. We use .NET 2.0 at work right now, so I haven’t had much exposure to this. I started out messing with the basic extension methods on simple generic collections. So far, I like it. As someone who is used to SQL, I find the query syntax to be confusing because of the reversed order. I prefer method syntax. I’m a C# kinda gal, so it just feels more intuitive to me. I’m used to delegates.
Little examples below for Any, All, Where, OrderBy, and Distinct.
