Recently learned that when we write linq queries will be converted into corrosponding methods at runtime. Eg:
from c in customers group c by c.Country into g select new { Country = g.Key, CustCount = g.Count() }
will be converted into
customers. GroupBy(c => c.Country). Select(g => new { Country = g.Key, CustCount = g.Count() })
Published under: Microsoft .NET Tips · · · ·