Correlates the items of this indexed collection with the items of another indexed collection and returns the combined items with matching keys.
Implements IIndexScanner(T).Join
Assembly: C1.LiveLinq (in C1.LiveLinq.dll)
Syntax
C# |
---|
public IEnumerable<TResult> Join<T2, TResult>( IIndexScanner<T2> source, Func<T, T2, TResult> resultSelector, JoinOperator op ) |
Visual Basic |
---|
Public Function Join(Of T2, TResult) ( _ source As IIndexScanner(Of T2), _ resultSelector As Func(Of T, T2, TResult), _ op As JoinOperator _ ) As IEnumerable(Of TResult) |
Parameters
- source
- Type: C1.LiveLinq.Indexing.Search..::..IIndexScanner<(Of <(<'T2>)>)>
The second indexed collection to join to this collection.
- resultSelector
- Type: System..::..Func<(Of <(<'T, T2, TResult>)>)>
A function to create a result element from two matching elements.
- op
- Type: C1.LiveLinq.Indexing.Search..::..JoinOperator
A comparison operator to match elements.
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 pairs of joined elements of the two collections.Remarks
Matching of two elements is performed by matching their keys.