public QueueArray(QueueArray <T> queue) { Count = queue.Count; Capacity = queue.Capacity; data = new T[Capacity]; queue.CopyTo(data, 0); }
public QueueLink(QueueArray <T> newdata) { Head = null; Tail = null; Count = newdata.Count; T[] data = new T[Count]; newdata.CopyTo(data, 0); for (int i = 0; i < Count; i++) { Add(data[i]); } }