Table of Contents

Class SumEx

Namespace
DynamicData.Aggregation
Assembly
DynamicData.dll

Aggregation extensions.

public static class SumEx
Inheritance
SumEx

Methods

Sum<T>(IObservable<IAggregateChangeSet<T>>, Func<T, decimal>)

Continual computes the sum of values matching the value selector.

public static IObservable<decimal> Sum<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, decimal> valueSelector)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, decimal>

The value selector.

Returns

IObservable<decimal>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IAggregateChangeSet<T>>, Func<T, double>)

Continual computes the sum of values matching the value selector.

public static IObservable<double> Sum<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, double> valueSelector)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, double>

The value selector.

Returns

IObservable<double>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IAggregateChangeSet<T>>, Func<T, int>)

Continual computes the sum of values matching the value selector.

public static IObservable<int> Sum<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, int> valueSelector)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, int>

The value selector.

Returns

IObservable<int>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IAggregateChangeSet<T>>, Func<T, long>)

Continual computes the sum of values matching the value selector.

public static IObservable<long> Sum<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, long> valueSelector)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, long>

The value selector.

Returns

IObservable<long>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IAggregateChangeSet<T>>, Func<T, decimal?>)

Continual computes the sum of values matching the value selector.

public static IObservable<decimal> Sum<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, decimal?> valueSelector)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, decimal?>

The value selector.

Returns

IObservable<decimal>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IAggregateChangeSet<T>>, Func<T, double?>)

Continual computes the sum of values matching the value selector.

public static IObservable<double> Sum<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, double?> valueSelector)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, double?>

The value selector.

Returns

IObservable<double>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IAggregateChangeSet<T>>, Func<T, int?>)

Continual computes the sum of values matching the value selector.

public static IObservable<int> Sum<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, int?> valueSelector)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, int?>

The value selector.

Returns

IObservable<int>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IAggregateChangeSet<T>>, Func<T, long?>)

Continual computes the sum of values matching the value selector.

public static IObservable<long> Sum<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, long?> valueSelector)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, long?>

The value selector.

Returns

IObservable<long>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IAggregateChangeSet<T>>, Func<T, float?>)

Continual computes the sum of values matching the value selector.

public static IObservable<float> Sum<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, float?> valueSelector)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, float?>

The value selector.

Returns

IObservable<float>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IAggregateChangeSet<T>>, Func<T, float>)

Continual computes the sum of values matching the value selector.

public static IObservable<float> Sum<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, float> valueSelector)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, float>

The value selector.

Returns

IObservable<float>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IChangeSet<T>>, Func<T, decimal>)

Continual computes the sum of values matching the value selector.

public static IObservable<decimal> Sum<T>(this IObservable<IChangeSet<T>> source, Func<T, decimal> valueSelector) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, decimal>

The value selector.

Returns

IObservable<decimal>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IChangeSet<T>>, Func<T, double>)

Continual computes the sum of values matching the value selector.

public static IObservable<double> Sum<T>(this IObservable<IChangeSet<T>> source, Func<T, double> valueSelector) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, double>

The value selector.

Returns

IObservable<double>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IChangeSet<T>>, Func<T, int>)

Continual computes the sum of values matching the value selector.

public static IObservable<int> Sum<T>(this IObservable<IChangeSet<T>> source, Func<T, int> valueSelector) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, int>

The value selector.

Returns

IObservable<int>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IChangeSet<T>>, Func<T, long>)

Continual computes the sum of values matching the value selector.

public static IObservable<long> Sum<T>(this IObservable<IChangeSet<T>> source, Func<T, long> valueSelector) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, long>

The value selector.

Returns

IObservable<long>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IChangeSet<T>>, Func<T, decimal?>)

Continual computes the sum of values matching the value selector.

public static IObservable<decimal> Sum<T>(this IObservable<IChangeSet<T>> source, Func<T, decimal?> valueSelector) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, decimal?>

The value selector.

Returns

IObservable<decimal>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IChangeSet<T>>, Func<T, double?>)

Continual computes the sum of values matching the value selector.

public static IObservable<double> Sum<T>(this IObservable<IChangeSet<T>> source, Func<T, double?> valueSelector) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, double?>

The value selector.

Returns

IObservable<double>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IChangeSet<T>>, Func<T, int?>)

Continual computes the sum of values matching the value selector.

public static IObservable<int> Sum<T>(this IObservable<IChangeSet<T>> source, Func<T, int?> valueSelector) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, int?>

The value selector.

Returns

IObservable<int>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IChangeSet<T>>, Func<T, long?>)

Continual computes the sum of values matching the value selector.

public static IObservable<long> Sum<T>(this IObservable<IChangeSet<T>> source, Func<T, long?> valueSelector) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, long?>

The value selector.

Returns

IObservable<long>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IChangeSet<T>>, Func<T, float?>)

Continual computes the sum of values matching the value selector.

public static IObservable<float> Sum<T>(this IObservable<IChangeSet<T>> source, Func<T, float?> valueSelector) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, float?>

The value selector.

Returns

IObservable<float>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<T>(IObservable<IChangeSet<T>>, Func<T, float>)

Continual computes the sum of values matching the value selector.

public static IObservable<float> Sum<T>(this IObservable<IChangeSet<T>> source, Func<T, float> valueSelector) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, float>

The value selector.

Returns

IObservable<float>

An observable which emits the summed value.

Type Parameters

T

The type of the item.

Sum<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, decimal>)

Continual computes the sum of values matching the value selector.

public static IObservable<decimal> Sum<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, decimal> valueSelector) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, decimal>

The value selector.

Returns

IObservable<decimal>

An observable which emits the summed value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

Sum<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, double>)

Continual computes the sum of values matching the value selector.

public static IObservable<double> Sum<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, double> valueSelector) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, double>

The value selector.

Returns

IObservable<double>

An observable which emits the summed value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

Sum<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, int>)

Continual computes the sum of values matching the value selector.

public static IObservable<int> Sum<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, int> valueSelector) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, int>

The value selector.

Returns

IObservable<int>

An observable which emits the summed value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

Sum<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, long>)

Continual computes the sum of values matching the value selector.

public static IObservable<long> Sum<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, long> valueSelector) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, long>

The value selector.

Returns

IObservable<long>

An observable which emits the summed value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

Sum<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, decimal?>)

Continual computes the sum of values matching the value selector.

public static IObservable<decimal> Sum<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, decimal?> valueSelector) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, decimal?>

The value selector.

Returns

IObservable<decimal>

An observable which emits the summed value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

Sum<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, double?>)

Continual computes the sum of values matching the value selector.

public static IObservable<double> Sum<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, double?> valueSelector) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, double?>

The value selector.

Returns

IObservable<double>

An observable which emits the summed value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

Sum<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, int?>)

Continual computes the sum of values matching the value selector.

public static IObservable<int> Sum<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, int?> valueSelector) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, int?>

The value selector.

Returns

IObservable<int>

An observable which emits the summed value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

Sum<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, long?>)

Continual computes the sum of values matching the value selector.

public static IObservable<long> Sum<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, long?> valueSelector) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, long?>

The value selector.

Returns

IObservable<long>

An observable which emits the summed value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

Sum<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, float?>)

Continual computes the sum of values matching the value selector.

public static IObservable<float> Sum<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, float?> valueSelector) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, float?>

The value selector.

Returns

IObservable<float>

An observable which emits the summed value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

Sum<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, float>)

Continual computes the sum of values matching the value selector.

public static IObservable<float> Sum<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, float> valueSelector) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, float>

The value selector.

Returns

IObservable<float>

An observable which emits the summed value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.