Case__2 - waf/Rx.NET GitHub Wiki
Returns a sequence from a dictionary based on the result of evaluating a selector function.
Namespace: System.Linq
Assembly: System.Interactive (in System.Interactive.dll)
public static IEnumerable<TResult> Case<TValue, TResult>(
Func<TValue> selector,
IDictionary<TValue, IEnumerable<TResult>> sources
)
Type: System.Func<TValue>
Selector function used to pick a sequence from the given sources.
Type: System.Collections.Generic.IDictionary<TValue, IEnumerable<TResult>>
Dictionary mapping selector values onto resulting sequences.
Type of the selector value.
Result sequence element type.
Type: IEnumerable<TResult>
The source sequence corresponding with the evaluated selector value; otherwise, an empty sequence.