public void Delete(TTarget item) { lock (value) value -= selector(item); }
public AverageStat(Func <TTarget, double> selector) { value = new AverageValue(); this.selector = selector; }
public void Add(TTarget item) { lock (value) value += selector(item); }