Click or drag to resize

AccumulatorTaskTKey, TValueAccumulate Method

When implemented in a derived class, accumulates the values of the records.

Namespace: Ookii.Jumbo.Jet.Tasks
Assembly: Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
protected abstract TValue Accumulate(
	TKey key,
	TValue currentValue,
	TValue newValue
)

Parameters

key  TKey
The key of the record.
currentValue  TValue
The current value associated with the key.
newValue  TValue
The new value associated with the key.

Return Value

TValue
The new value.
Remarks

If TValue is a mutable reference type, it is recommended for performance reasons to update the existing instance passed in currentValue and then return that same instance from this method.

See Also