Method SwitchIf
SwitchIf<TIn, TOut>(IObservable<TIn>, Predicate<TIn>, Func<TIn, IObservable<TOut>>)
Declaration
public static IObservable<TOut> SwitchIf<TIn, TOut>(this IObservable<TIn> observable, Predicate<TIn> condition, Func<TIn, IObservable<TOut>> trueSelector)
Parameters
Returns
Type Parameters
Name |
Description |
TIn |
|
TOut |
|
SwitchIf<TIn, TOut>(IObservable<TIn>, Predicate<TIn>, Func<TIn, IObservable<TOut>>, Func<TIn, IObservable<TOut>>)
Declaration
public static IObservable<TOut> SwitchIf<TIn, TOut>(this IObservable<TIn> observable, Predicate<TIn> condition, Func<TIn, IObservable<TOut>> trueSelector, Func<TIn, IObservable<TOut>> falseSelector)
Parameters
Returns
Type Parameters
Name |
Description |
TIn |
|
TOut |
|