[]
        
(Showing Draft Content)

C1.LiveLinq.LiveViews.View-1.GroupJoin

GroupJoin Method

GroupJoin<TInner, TKey, TResult>(IObservableSource<TInner>, Expression<Func<T, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<T, GroupView<TKey, TInner>, TResult>>)

Correlates the elements of two views based on equality of keys and groups the results.

Declaration
public View<TResult> GroupJoin<TInner, TKey, TResult>(IObservableSource<TInner> inner, Expression<Func<T, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<T, GroupView<TKey, TInner>, TResult>> resultSelector)
Parameters
Type Name Description
IObservableSource<TInner> inner

The collection (usually, a view) to join to this view.

Expression<Func<T, TKey>> outerKeySelector

A function to extract the join key from each element of this view.

Expression<Func<TInner, TKey>> innerKeySelector

A function to extract the join key from each element of the second view.

Expression<Func<T, GroupView<TKey, TInner>, TResult>> resultSelector

A function to create a result view from an element from this view and a collection of matching elements from the second view.

Returns
Type Description
View<TResult>

A view containing elements of type TResult that are obtained by performing a grouped join on two views.

Type Parameters
Name Description
TInner

The type of the elements of the view to join with this view.

TKey

The type of the keys returned by the key selector functions.

TResult

The type of the result elements.