Method EnableIf
EnableIf<T>(IObservable<T>, IObservable<bool>)
Declaration
public static IObservable<T> EnableIf<T>(this IObservable<T> source, IObservable<bool> condition)
Parameters
Type | Name | Description |
---|---|---|
IObservable<T> | source | |
IObservable<bool> | condition |
Returns
Type | Description |
---|---|
IObservable<T> |
Type Parameters
Name | Description |
---|---|
T |
EnableIf<T>(IObservable<T>, IObservable<bool>, IObservable<T>)
Declaration
public static IObservable<T> EnableIf<T>(this IObservable<T> source, IObservable<bool> condition, IObservable<T> alternateSource)
Parameters
Type | Name | Description |
---|---|---|
IObservable<T> | source | |
IObservable<bool> | condition | |
IObservable<T> | alternateSource |
Returns
Type | Description |
---|---|
IObservable<T> |
Type Parameters
Name | Description |
---|---|
T |