 | AccumulatorTaskTKey, TValueAccumulate Method |
When implemented in a derived class, accumulates the values of the records.
Namespace: Ookii.Jumbo.Jet.TasksAssembly: Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxprotected 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 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
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