Method Name |
Description |
More Information |
Join |
Joins two sequences based on key selector functions and extracts pairs of values. |
|
GroupJoin |
Joins two sequences based on key selector functions and groups the resulting matches for each element. |
Method Name |
Description |
More Information |
GroupBy |
Groups elements that share a common attribute. Each group is represented by an IGrouping<TKey,TElement> object. |
|
ToLookup |
Inserts elements into a Lookup<TKey,TElement> (a one-to- many dictionary) based on a key selector function. |
GroupBy 与 ToLookup 的区别
来自<https://www.jianshu.com/p/dbae3593e824>
ToLookup 和 GroupBy 一样,唯一不同的是GroupBy 是延迟执行,而 ToLookup 是立即执行。