Topics

 Certainly! Here's a categorized list of LINQ methods in C# based on their primary operations:

Filtering Methods:

  1. Where
  2. OfType

Sorting Methods:

  1. OrderBy
  2. OrderByDescending
  3. ThenBy
  4. ThenByDescending
  5. Reverse

Projection Methods:

  1. Select
  2. SelectMany

Joining Methods:

  1. Join
  2. GroupJoin

Set Methods:

  1. Distinct
  2. Except
  3. Intersect
  4. Union

Element Methods:

  1. ElementAt
  2. ElementAtOrDefault
  3. First
  4. FirstOrDefault
  5. Last
  6. LastOrDefault
  7. Single
  8. SingleOrDefault

Quantifier Methods:

  1. All
  2. Any
  3. Contains

Aggregation Methods:

  1. Aggregate
  2. Average
  3. Count
  4. LongCount
  5. Max
  6. Min
  7. Sum

Conversion Methods:

  1. AsEnumerable
  2. Cast
  3. DefaultIfEmpty
  4. Empty
  5. Prepend
  6. Append
  7. Range
  8. Repeat
  9. ToArray
  10. ToDictionary
  11. ToHashSet
  12. ToList
  13. ToLookup

Partitioning Methods:

  1. Skip
  2. SkipWhile
  3. Take
  4. TakeWhile
  5. SkipLast
  6. TakeLast

Equality Methods:

  1. SequenceEqual

Combining Methods:

  1. Concat
  2. Zip

These methods provide a wide range of operations for querying and manipulating data in LINQ queries in C#.

Comments