LINQ Methods

LINQ is now most freuently used by programmers to query Collections. It reduces number of lines of code. Lets discuss available LINQ methods.

These fuctions can be applied to only those collections which implements IQueryable<T> interface or IEnumerable interface.

Below are the available methods . Click on each method to know more about it and we will take difference between methods which have nearly same output like First and FirstOrDefault , First and Take(1)  etc.
  1. Aggregate 
  2. All 
  3. Any 
  4. AsQueryable 
  5. Average 
  6. Cast 
  7. Concat 
  8. Contains 
  9. Count 
  10. DefaultIfEmpty 
  11. Distinct 
  12. ElementAt 
  13. ElementAtOrDefault 
  14. Except 
  15. First 
  16. FirstOrDefault 
  17. GroupBy 
  18. GroupJoin 
  19. Intersect 
  20. Join 
  21. Last 
  22. LastOrDefault 
  23. LongCount 
  24. Max 
  25. Min 
  26. OfType 
  27. OrderBy 
  28. OrderByDescending 
  29. Reverse 
  30. Select 
  31. SelectMany 
  32. SequenceEqual 
  33. Single 
  34. SingleOrDefault 
  35. Skip 
  36. SkipWhile 
  37. Sum 
  38. Take 
  39. TakeWhile 
  40. ThenBy 
  41. ThenByDescending 
  42. Union 
  43. Where 
  44. Zip

Comments

Popular Posts