Class MaxEx
- Namespace
- Dynamic
Data .Aggregation
- Assembly
- DynamicData.dll
Maximum and minimum value extensions.
- Inheritance
-
Max
Ex
Methods
Maximum<TObject, TResult>(IObservable<IChangeSet<TObject>>, Func<TObject, TResult>, TResult)
Continually calculates the maximum value from the underlying data source.
public static IObservable<TResult> Maximum<TObject, TResult>(this IObservable<IChangeSet<TObject>> source, Func<TObject, TResult> valueSelector, TResult emptyValue = default) where TObject : notnull where TResult : struct, IComparable<TResult>
Parameters
sourceIObservable<IChangeSet <TObject>>The source.
valueSelectorFunc<TObject, TResult>The value selector.
emptyValueTResultThe value to use when the underlying collection is empty.
Returns
- IObservable<TResult>
A distinct observable of the maximum item.
Type Parameters
TObjectThe type of the object.
TResultThe type of the result.
Maximum<TObject, TKey, TResult>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, TResult>, TResult)
Continually calculates the maximum value from the underlying data source.
public static IObservable<TResult> Maximum<TObject, TKey, TResult>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, TResult> valueSelector, TResult emptyValue = default) where TObject : notnull where TKey : notnull where TResult : struct, IComparable<TResult>
Parameters
sourceIObservable<IChangeSet <TObject, TKey>>The source.
valueSelectorFunc<TObject, TResult>The value selector.
emptyValueTResultThe value to use when the underlying collection is empty.
Returns
- IObservable<TResult>
A distinct observable of the maximum item.
Type Parameters
TObjectThe type of the object.
TKeyThe type of the key.
TResultThe type of the result.
Minimum<TObject, TResult>(IObservable<IChangeSet<TObject>>, Func<TObject, TResult>, TResult)
Continually calculates the minimum value from the underlying data source.
public static IObservable<TResult> Minimum<TObject, TResult>(this IObservable<IChangeSet<TObject>> source, Func<TObject, TResult> valueSelector, TResult emptyValue = default) where TObject : notnull where TResult : struct, IComparable<TResult>
Parameters
sourceIObservable<IChangeSet <TObject>>The source.
valueSelectorFunc<TObject, TResult>The value selector.
emptyValueTResultThe value to use when the underlying collection is empty.
Returns
- IObservable<TResult>
A distinct observable of the minimums item.
Type Parameters
TObjectThe type of the object.
TResultThe type of the result.
Minimum<TObject, TKey, TResult>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, TResult>, TResult)
Continually calculates the minimum value from the underlying data source.
public static IObservable<TResult> Minimum<TObject, TKey, TResult>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, TResult> valueSelector, TResult emptyValue = default) where TObject : notnull where TKey : notnull where TResult : struct, IComparable<TResult>
Parameters
sourceIObservable<IChangeSet <TObject, TKey>>The source.
valueSelectorFunc<TObject, TResult>The value selector.
emptyValueTResultThe value to use when the underlying collection is empty.
Returns
- IObservable<TResult>
A distinct observable of the minimums item.
Type Parameters
TObjectThe type of the object.
TKeyThe type of the key.
TResultThe type of the result.