Topics
Certainly! Here's a categorized list of LINQ methods in C# based on their primary operations:
Filtering Methods:
- Where
- OfType
Sorting Methods:
- OrderBy
- OrderByDescending
- ThenBy
- ThenByDescending
- Reverse
Projection Methods:
- Select
- SelectMany
Joining Methods:
- Join
- GroupJoin
Set Methods:
- Distinct
- Except
- Intersect
- Union
Element Methods:
- ElementAt
- ElementAtOrDefault
- First
- FirstOrDefault
- Last
- LastOrDefault
- Single
- SingleOrDefault
Quantifier Methods:
- All
- Any
- Contains
Aggregation Methods:
- Aggregate
- Average
- Count
- LongCount
- Max
- Min
- Sum
Conversion Methods:
- AsEnumerable
- Cast
- DefaultIfEmpty
- Empty
- Prepend
- Append
- Range
- Repeat
- ToArray
- ToDictionary
- ToHashSet
- ToList
- ToLookup
Partitioning Methods:
- Skip
- SkipWhile
- Take
- TakeWhile
- SkipLast
- TakeLast
Equality Methods:
- SequenceEqual
Combining Methods:
- Concat
- Zip
These methods provide a wide range of operations for querying and manipulating data in LINQ queries in C#.
Comments
Post a Comment