is there in C# some already defined generic container which can be used as Stack and as Queue at the same time? I just want to be able to append elements either to the end,
Check the LinkedList class.
LinkedList list = new LinkedList(); list.AddFirst(1); list.AddLast(2); list.AddFirst(0);