public static void Main()
var myQueue = new OneQueueList<int>();
while (myQueue.Count > 0)
Console.Write(myQueue.Dequeue());
public T Data { get { return _data; } }
internal LinkedListNode<T> NextNode = null;
public LinkedListNode(T i)
private LinkedListNode<T> _head = null;
internal LinkedListNode<T> _tail = null;
public int Count { get; private set; }
public LinkedListNode<T> Enqueue(T i)
LinkedListNode<T> lln = new LinkedListNode<T>(i);
if (_tail != null && _head != null)
LinkedListNode<T> pre = _head.NextNode;
throw new InvalidOperationException();
throw new InvalidOperationException();