/// <summary> /// Copies the queue elements to a new array /// </summary> /// <returns>A new array containing elements copied from the queue</returns> public T[] ToArray() { TurboContract.Ensures(TurboContract.Result <T[]>() != null); return(_circularList.ToArray()); }
/// <summary> /// Copies the deque elements to a new array /// </summary> /// <returns>A new array containing elements copied from the deque</returns> public T[] ToArray() { return(_circularList.ToArray()); }