Wednesday, July 6, 2011

LINQ-Language INtegrated Query

LINQ-Language integrated Query, new language library which can be used to Query the Implementation of interface's IEnumerable, List, T[], HashSet.

Normally LINQ methods are supplied with Lambas expression, Anonymous methods and normal methods.

LINQ methods are classified into Different category.

  • Chiaining – (Where, Select)
  • Combine and Reduce – (Concat, Distinct, Union)
  • First and Match – (First , FirstOrDefault)
  • Other and Match – (Last, ElementAt, Single)
  • Set – (Except, Intersect, Union)
  • Membership and Count – (Contains, Count)
  • Aggregate – (Sum, Avarage, Min, Max, Aggregate)
  • Grouping – (GroupBy)
  • Ordering – (OrderBy, OrderByDescending, ThenBy, ThenBydescending)
  • Export – (ToArray, ToList, ToDictionary, ToLookup)
For more information on MSDN - http://msdn.microsoft.com/en-us/netframework/aa904594