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,
What you want is a linked list - there's one in the BCL - that has AddFirst and AddLast methods