public void CopyTo(Array array, int index) { TimerEventSubscription[] subscriptionArray = null; lock (this.locker) { subscriptionArray = new TimerEventSubscription[this.queue.Count]; this.queue.Values.CopyTo(subscriptionArray, 0); } if (subscriptionArray != null) { subscriptionArray.CopyTo(array, index); } }
public void CopyTo(Array array, int index) { TimerEventSubscription[] tes = null; lock (locker) { tes = new TimerEventSubscription[queue.Count]; queue.Values.CopyTo(tes, 0); } if (tes != null) { tes.CopyTo(array, index); } }
public void CopyTo(Array array, int index) { TimerEventSubscription[] subscriptionArray = null; lock (this.locker) { subscriptionArray = new TimerEventSubscription[this.queue.Count]; this.queue.Values.CopyTo(subscriptionArray, 0); } if (subscriptionArray != null) { subscriptionArray.CopyTo(array, index); } }
public void CopyTo(Array array, int index) { TimerEventSubscription[] tes = null; lock (locker) { tes = new TimerEventSubscription[queue.Count]; queue.Values.CopyTo(tes, 0); } if (tes != null) tes.CopyTo(array, index); }