Exemple #1
0
        // Implement the ICloneable<T> interface.
        public Object Clone()
        {
            ArrayQueue <T> queue = (ArrayQueue <T>)MemberwiseClone();

            queue.items = (T[])items.Clone();
            return(queue);
        }
Exemple #2
0
 // Constructor.
 public QueueIterator(ArrayQueue <T> queue)
 {
     this.queue = queue;
     position   = -1;
 }