[]
        
(Showing Draft Content)

C1.LiveLinq.LiveViews.View-1.SelectMany

SelectMany Method

SelectMany<TCollection, TResult>(Expression<Func<T, IObservableSource<TCollection>>>, Expression<Func<T, TCollection, TResult>>)

Projects each element of this view to a collection of collections, flattens the resulting collections into one collection, and invokes a result selector function on each element therein.

Declaration
public View<TResult> SelectMany<TCollection, TResult>(Expression<Func<T, IObservableSource<TCollection>>> collectionSelector, Expression<Func<T, TCollection, TResult>> resultSelector)
Parameters
Type Name Description
Expression<Func<T, IObservableSource<TCollection>>> collectionSelector

A transform function to apply to each element of this view.

Expression<Func<T, TCollection, TResult>> resultSelector

A transform function to apply to each element of the intermediate collection.

Returns
Type Description
View<TResult>

A view whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of this view and then mapping each of those collection elements and their corresponding source element to a result element.

Type Parameters
Name Description
TCollection

The type of the intermediate elements collected by collectionSelector.

TResult

The type of the elements of the resulting view.

SelectMany<TResult>(Expression<Func<T, IObservableSource<TResult>>>)

Projects each element of this view to a collection of TResult and flattens the resulting collections into one view.

Declaration
public View<TResult> SelectMany<TResult>(Expression<Func<T, IObservableSource<TResult>>> selector)
Parameters
Type Name Description
Expression<Func<T, IObservableSource<TResult>>> selector

A transform function to apply to each element.

Returns
Type Description
View<TResult>

A view whose elements are the result of invoking the one-to-many transform function on each element of this view.

Type Parameters
Name Description
TResult

The type of the elements of the resulting view.