示例#1
0
        /// <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());
        }
示例#2
0
 /// <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());
 }