protected override void AddItem(decimal?item) { if (!item.HasValue) { return; } Accumulator = new SumData <decimal>() { ElementCount = Accumulator.ElementCount + 1, Sum = Accumulator.Sum + item.Value }; }
protected override void RemoveItem(double?item) { if (!item.HasValue) { return; } Accumulator = new SumData <double>() { ElementCount = Accumulator.ElementCount - 1, Sum = Accumulator.Sum - item.Value }; }
protected override void ResetAccumulator() { Accumulator = new SumData <decimal>(); }
protected override void ResetAccumulator() { Accumulator = new SumData <double>(); }
protected override void ResetAccumulator() { Accumulator = new SumData <float>(); }