'Declaration
Public Shared Function GroupJoin (Of TOuter,TInner,TKey,TResult)( _ ByVal outer As IIndexedSource(Of TOuter), _ ByVal inner As System.Collections.Generic.IEnumerable(Of TInner), _ ByVal outerKeySelector As System.Linq.Expressions.Expression(Of Func(Of TOuter,TKey)), _ ByVal innerKeySelector As System.Linq.Expressions.Expression(Of Func(Of TInner,TKey)), _ ByVal resultSelector As System.Linq.Expressions.Expression(Of Func(Of TOuter,IEnumerable(Of TInner),TResult)) _ ) As IIndexedSource(Of TResult)
public static IIndexedSource<TResult> GroupJoin<TOuter,TInner,TKey,TResult>( IIndexedSource<TOuter> outer, System.Collections.Generic.IEnumerable<TInner> inner, System.Linq.Expressions.Expression<Func<TOuter,TKey>> outerKeySelector, System.Linq.Expressions.Expression<Func<TInner,TKey>> innerKeySelector, System.Linq.Expressions.Expression<Func<TOuter,IEnumerable<TInner>,TResult>> resultSelector )
Parameters
- outer
- The first collection to join.
- inner
- The collection to join to the first collection.
- outerKeySelector
- A function to extract the join key from each element of the first collection.
- innerKeySelector
- A function to extract the join key from each element of the second collection.
- resultSelector
- A function to create a result element from an element from the first collection and a collection of matching elements from the second collection.
Type Parameters
- TOuter
- The type of the elements of the first collection.
- TInner
- The type of the elements of the second collection.
- TKey
- The type of the keys returned by the key selector functions.
- TResult
- The type of the result elements.
Return Value
An IIndexedSource<TResult> that contains elements of type TResult that are obtained by performing a grouped join on two collections.