[]
        
(Showing Draft Content)

C1.LiveLinq.Indexing.Search.IIndexScanner-2.Join

Join Method

Join<T2, TResult>(IEnumerable<T2>, Func<T2, TKey>, Func<T, T2, TResult>, JoinOperator)

Correlates the items of this indexed collection with the items of another sequence and returns the combined items with matching keys.

Declaration
IEnumerable<TResult> Join<T2, TResult>(IEnumerable<T2> source, Func<T2, TKey> keySelector, Func<T, T2, TResult> resultSelector, JoinOperator op)
Parameters
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, T2, TResult> resultSelector

A function to create a result element from two matching elements.

JoinOperator op

A comparison operator to match elements.

Returns
Type Description
IEnumerable<TResult>

Enumeration of objects obtained by applying the result selector to pairs of joined elements of the two collections.

Type Parameters
Name Description
T2

The type of the elements of the second sequence.

TResult

The type of the result elements.

Join<T2, TResult>(IIndexScanner<T2, TKey>, Func<T, T2, TResult>, JoinOperator)

Correlates the items of this indexed collection with the items of another indexed collection and returns the combined items with matching keys.

Declaration
IEnumerable<TResult> Join<T2, TResult>(IIndexScanner<T2, TKey> source, Func<T, T2, TResult> resultSelector, JoinOperator op)
Parameters
Type Name Description
IIndexScanner<T2, TKey> source

The second indexed collection to join to this collection.

Func<T, T2, TResult> resultSelector

A function to create a result element from two matching elements.

JoinOperator op

A comparison operator to match elements.

Returns
Type Description
IEnumerable<TResult>

Enumeration of objects obtained by applying the result selector to pairs of joined elements of the two collections.

Type Parameters
Name Description
T2

The type of the elements of the second collection.

TResult

The type of the result elements.

Remarks

Matching of two elements is performed by matching their keys.