/// <summary> /// Decrements the counters using information from another container. /// </summary> /// <param name="other">The other.</param> public void Decrement(RefCountItemContainer <T> other) { CountOnFirst -= other.CountOnFirst; CountOnSecond -= other.CountOnSecond; }
/// <summary> /// Increments the counters using information from another container. /// </summary> /// <param name="other">The other.</param> public void Increment(RefCountItemContainer <T> other) { CountOnFirst += other.CountOnFirst; CountOnSecond += other.CountOnSecond; }