},System.Func{--0,System.Boolean})} },System.IObservable{System.Func{--0,System.Boolean}})} },System.IObservable{System.Func{--0,System.Boolean}},System.IObservable{System.Reactive.Unit})}
ObservableCacheAlias.Where(IObservable>, Func) method¶
Defined in
Type: ObservableCacheAlias
Namespace: DynamicData.Alias
Assembly: DynamicData.dll
Applies to
net10.0, netstandard2.0
Overloads¶
-
public static IObservable<IChangeSet<TObject, TKey>> Where<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, bool> filter) where TObject : notnull where TKey : notnull -
public static IObservable<IChangeSet<TObject, TKey>> Where<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservable<Func<TObject, bool>> predicateChanged) where TObject : notnull where TKey : notnull -
public static IObservable<IChangeSet<TObject, TKey>> Where<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservable<Func<TObject, bool>> predicateChanged, IObservable<Unit> reapplyFilter) where TObject : notnull where TKey : notnull
1. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Where<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, bool> filter) where TObject : notnull where TKey : notnull
Summary: Filters the specified source.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
filter | Func | The filter. |
Returns: IObservable
2. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Where<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservable<Func<TObject, bool>> predicateChanged) where TObject : notnull where TKey : notnull
Summary: Creates a filtered stream which can be dynamically filtered.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
predicateChanged | IObservable | Observable to change the underlying predicate. |
Returns: IObservable
3. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Where<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservable<Func<TObject, bool>> predicateChanged, IObservable<Unit> reapplyFilter) where TObject : notnull where TKey : notnull
Summary: Creates a filtered stream which can be dynamically filtered.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
predicateChanged | IObservable | Observable to change the underlying predicate. |
reapplyFilter | IObservable | Observable to re-evaluate whether the filter still matches items. Use when filtering on mutable values. |
Returns: IObservable