Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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;
 }