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: 2.0.0
Syntax
protected abstract TValue Accumulate(
	TKey key,
	TValue currentValue,
	TValue newValue
)

Parameters

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

Return Value

Type: 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