Correlates the items of this indexed collection with the items of another indexed collection and groups the results by the item of this collection.

Namespace:  C1.LiveLinq.Indexing.Search
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
IEnumerable<TResult> GroupJoin<T2, TResult>(
	IIndexScanner<T2, TKey> source,
	Func<T, IEnumerable<T2>, TResult> resultSelector
)
Visual Basic
Function GroupJoin(Of T2, TResult) ( _
	source As IIndexScanner(Of T2, TKey), _
	resultSelector As Func(Of T, IEnumerable(Of T2), TResult) _
) As IEnumerable(Of TResult)

Parameters

source
Type: C1.LiveLinq.Indexing.Search..::..IIndexScanner<(Of <(<'T2, TKey>)>)>
The second indexed collection to join to this collection.
resultSelector
Type: System..::..Func<(Of <(<'T, IEnumerable<(Of <(<'T2>)>)>, TResult>)>)>
A function to create a result element from an element from this collection and a collection of matching elements from the second collection.

Type Parameters

T2
The type of the elements of the second collection.
TResult
The type of the result elements.

Return Value

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.

Remarks

Matching of two elements is performed by matching their keys.

See Also