Class CountEx
- Namespace
- DynamicData.Aggregation
- Assembly
- DynamicData.dll
Count extensions.
public static class CountEx
- Inheritance
-
CountEx
Methods
Count<TObject>(IObservable<IAggregateChangeSet<TObject>>)
Counts the total number of items in the underlying data source.
public static IObservable<int> Count<TObject>(this IObservable<IAggregateChangeSet<TObject>> source)
Parameters
source
IObservable<IAggregateChangeSet<TObject>>The source.
Returns
- IObservable<int>
An observable which emits the count.
Type Parameters
TObject
The type of the object.
Count<TObject>(IObservable<IChangeSet<TObject>>)
Counts the total number of items in the underlying data source.
public static IObservable<int> Count<TObject>(this IObservable<IChangeSet<TObject>> source) where TObject : notnull
Parameters
source
IObservable<IChangeSet<TObject>>The source.
Returns
- IObservable<int>
An observable which emits the count.
Type Parameters
TObject
The type of the object.
Count<TObject>(IObservable<IDistinctChangeSet<TObject>>)
Counts the total number of items in the underlying data source.
public static IObservable<int> Count<TObject>(this IObservable<IDistinctChangeSet<TObject>> source) where TObject : notnull
Parameters
source
IObservable<IDistinctChangeSet<TObject>>The source.
Returns
- IObservable<int>
An observable which emits the count.
Type Parameters
TObject
The type of the object.
Count<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>)
Counts the total number of items in the underlying data source.
public static IObservable<int> Count<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source) where TObject : notnull where TKey : notnull
Parameters
source
IObservable<IChangeSet<TObject, TKey>>The source.
Returns
- IObservable<int>
An observable which emits the count.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
IsEmpty<TObject>(IObservable<IChangeSet<TObject>>)
Counts the total number of items in the underlying data source and return true if the number of items == 0.
public static IObservable<bool> IsEmpty<TObject>(this IObservable<IChangeSet<TObject>> source) where TObject : notnull
Parameters
source
IObservable<IChangeSet<TObject>>The source.
Returns
- IObservable<bool>
An observable which emits the count.
Type Parameters
TObject
The type of the object.
IsEmpty<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>)
Counts the total number of items in the underlying data source and return true if the number of items == 0.
public static IObservable<bool> IsEmpty<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source) where TObject : notnull where TKey : notnull
Parameters
source
IObservable<IChangeSet<TObject, TKey>>The source.
Returns
- IObservable<bool>
An observable which emits the count.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
IsNotEmpty<TObject>(IObservable<IChangeSet<TObject>>)
Counts the total number of items in the underlying data source and returns true if the number of items is greater than 0.
public static IObservable<bool> IsNotEmpty<TObject>(this IObservable<IChangeSet<TObject>> source) where TObject : notnull
Parameters
source
IObservable<IChangeSet<TObject>>The source.
Returns
- IObservable<bool>
An observable which emits the count.
Type Parameters
TObject
The type of the object.
IsNotEmpty<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>)
Counts the total number of items in the underlying data source and returns true if the number of items is greater than 0.
public static IObservable<bool> IsNotEmpty<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source) where TObject : notnull where TKey : notnull
Parameters
source
IObservable<IChangeSet<TObject, TKey>>The source.
Returns
- IObservable<bool>
An observable which emits the count.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.