예제 #1
0
 public void Delete(TTarget item)
 {
     lock (value)
         value -= selector(item);
 }
예제 #2
0
 public AverageStat(Func <TTarget, double> selector)
 {
     value         = new AverageValue();
     this.selector = selector;
 }
예제 #3
0
 public void Add(TTarget item)
 {
     lock (value)
         value += selector(item);
 }