Is there a standard collection in .NET that implements a FIFO stack?
3 Answers
FIFO means first-in-first-out. The data structure you're looking for is called a Queue.
1 Comment
Andrey
yes, or asker meant named pipes: en.wikipedia.org/wiki/Named_pipe - named pipe (also known as a FIFO for its behavior)
FIFO means first in first out. This is as opposed to LIFO (or FILO as lucero pointed out). which is last in first out.
A link comparing queues, stacks, and hashtables.
You want to use a queue object for FIFO operations:
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=66
MSDN link on queues
And a stack is used for LIFO operations: Stack Link
1 Comment
Lucero
Note that LIFO is also known as FILO. :-)