[]
Correlates the items of this indexed collection with the items of another indexed collection and groups the results by the item of this collection.
Implements IIndexScanner(T,TKey).GroupJoin
public IEnumerable<TResult> GroupJoin<T2, TResult>(IIndexScanner<T2, TKey> source, Func<T, IEnumerable<T2>, TResult> resultSelector)
Type | Name | Description |
---|---|---|
IIndexScanner<T2, TKey> | source | The second indexed collection to join to this collection. |
Func<T, IEnumerable<T2>, TResult> | resultSelector | A function to create a result element from an element from this collection and a collection of matching elements from the second collection. |
Type | Description |
---|---|
IEnumerable<TResult> | Enumeration of objects obtained by applying the result selector to group pairs, where each pair consists of an item of this collection and the corresponding enumeration of the items of the second collection joined to it. |
Name | Description |
---|---|
T2 | The type of the elements of the second collection. |
TResult | The type of the result elements. |
Matching of two elements is performed by matching their keys.
Correlates the items of this indexed collection with the items of another sequence and groups the results by the item of the second sequence.
Implements IIndexScanner(T,TKey).GroupJoin
public IEnumerable<TResult> GroupJoin<T2, TResult>(IEnumerable<T2> source, Func<T2, TKey> keySelector, Func<IEnumerable<T>, T2, TResult> resultSelector)
Type | Name | Description |
---|---|---|
IEnumerable<T2> | source | The second sequence to join to this collection. |
Func<T2, TKey> | keySelector | A function to extract from an item of the second sequence the value to match against this collection's key value. |
Func<IEnumerable<T>, T2, TResult> | resultSelector | A function to create a result element from an element of the second sequence and the collection of matching elements from this collection. |
Type | Description |
---|---|
IEnumerable<TResult> | Enumeration of objects obtained by applying the result selector to group pairs, where each pair consists of an item of the second collection and the corresponding enumeration of the items of this collection joined to it. |
Name | Description |
---|---|
T2 | The type of the elements of the second sequence. |
TResult | The type of the result elements. |
Correlates the items of this indexed collection with the items of another sequence and groups the results by the item of this collection.
Implements IIndexScanner(T,TKey).GroupJoin
public IEnumerable<TResult> GroupJoin<T2, TResult>(IEnumerable<T2> source, Func<T2, TKey> keySelector, Func<T, IEnumerable<T2>, TResult> resultSelector)
Type | Name | Description |
---|---|---|
IEnumerable<T2> | source | The second sequence to join to this collection. |
Func<T2, TKey> | keySelector | A function to extract from an item of the second sequence the value to match against this collection's key value. |
Func<T, IEnumerable<T2>, TResult> | resultSelector | A function to create a result element from an element from this collection and a collection of matching elements from the second sequence. |
Type | Description |
---|---|
IEnumerable<TResult> | Enumeration of objects obtained by applying the result selector to group pairs, where each pair consists of an item of this collection and the corresponding enumeration of the items of the second sequence joined to it. |
Name | Description |
---|---|
T2 | The type of the elements of the second sequence. |
TResult | The type of the result elements. |