| 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
)
Protected MustOverride Function Accumulate (
key As TKey,
currentValue As TValue,
newValue As TValue
) As TValue
protected:
virtual TValue Accumulate(
TKey key,
TValue currentValue,
TValue newValue
) abstract
abstract Accumulate :
key : 'TKey *
currentValue : 'TValue *
newValue : 'TValue -> 'TValue
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:
TValueThe 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