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