public static ChoQueue Synchronized(ChoQueue queue) { if (queue == null) { throw new ArgumentNullException("queue"); } return(new ChoSynchronizedQueue(queue)); }
internal ChoSynchronizedQueue(ChoQueue q) { _q = q; root = _q.SyncRoot; }
// Methods internal ChoQueueEnumerator(ChoQueue q) { _q = q; _index = q == null || q.Count == 0 ? -1 : 0; }