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