[]
        
(Showing Draft Content)

C1.LiveLinq.Indexing.Index-1.GroupJoin

GroupJoin Method

GroupJoin<T2, TResult>(IIndexScanner<T2>, Func<T, IEnumerable<T2>, TResult>)

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).GroupJoin

Declaration
public IEnumerable<TResult> GroupJoin<T2, TResult>(IIndexScanner<T2> source, Func<T, IEnumerable<T2>, TResult> resultSelector)
Parameters
Type Name Description
IIndexScanner<T2> 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.

Returns
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.

Type Parameters
Name Description
T2

The type of the elements of the second collection.

TResult

The type of the result elements.

Implements
Remarks

Matching of two elements is performed by matching their keys.

GroupJoin<T2, TResult>(IEnumerable<T2>, Func<T2, object>, Func<IEnumerable<T>, T2, TResult>)

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).GroupJoin

Declaration
public IEnumerable<TResult> GroupJoin<T2, TResult>(IEnumerable<T2> source, Func<T2, object> keySelector, Func<IEnumerable<T>, T2, TResult> resultSelector)
Parameters
Type Name Description
IEnumerable<T2> source

The second sequence to join to this collection.

Func<T2, object> 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.

Returns
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.

Type Parameters
Name Description
T2

The type of the elements of the second sequence.

TResult

The type of the result elements.

Implements

GroupJoin<T2, TResult>(IEnumerable<T2>, Func<T2, object>, Func<T, IEnumerable<T2>, TResult>)

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).GroupJoin

Declaration
public IEnumerable<TResult> GroupJoin<T2, TResult>(IEnumerable<T2> source, Func<T2, object> keySelector, Func<T, IEnumerable<T2>, TResult> resultSelector)
Parameters
Type Name Description
IEnumerable<T2> source

The second sequence to join to this collection.

Func<T2, object> 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.

Returns
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.

Type Parameters
Name Description
T2

The type of the elements of the second sequence.

TResult

The type of the result elements.

Implements