Class MaxEx
- Namespace
- DynamicData.Aggregation
- Assembly
- DynamicData.dll
Maximum and minimum value extensions.
public static class MaxEx
- Inheritance
-
MaxEx
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
source
IObservable<IChangeSet<TObject>>The source.
valueSelector
Func<TObject, TResult>The value selector.
emptyValue
TResultThe value to use when the underlying collection is empty.
Returns
- IObservable<TResult>
A distinct observable of the maximum item.
Type Parameters
TObject
The type of the object.
TResult
The 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
source
IObservable<IChangeSet<TObject, TKey>>The source.
valueSelector
Func<TObject, TResult>The value selector.
emptyValue
TResultThe value to use when the underlying collection is empty.
Returns
- IObservable<TResult>
A distinct observable of the maximum item.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
TResult
The 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
source
IObservable<IChangeSet<TObject>>The source.
valueSelector
Func<TObject, TResult>The value selector.
emptyValue
TResultThe value to use when the underlying collection is empty.
Returns
- IObservable<TResult>
A distinct observable of the minimums item.
Type Parameters
TObject
The type of the object.
TResult
The 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
source
IObservable<IChangeSet<TObject, TKey>>The source.
valueSelector
Func<TObject, TResult>The value selector.
emptyValue
TResultThe value to use when the underlying collection is empty.
Returns
- IObservable<TResult>
A distinct observable of the minimums item.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
TResult
The type of the result.