public class CounterNoLock:CountBase { private int _count; public int Count { get { return _count; } } public override void Increment() { Interlocked.Increment(ref _count); } public override void Decreament() { Interlocked.Decrement(ref _count); } }