tags:

views:

156

answers:

3

How to work with "fifo" in C# .net? (is it possible in .net 3.5 in 4.0?)

+7  A: 

FIFO means first-in-first-out. The data structure you're looking for is called a Queue.

Without some more information, your question is unanswerable.

Dave Markle
yes, or asker meant named pipes: http://en.wikipedia.org/wiki/Named_pipe - named pipe (also known as a FIFO for its behavior)
Andrey
+6  A: 

Please be more specific about what you're trying to do.

Are you looking for the Queue<T> class?

LukeH
+5  A: 

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

Kevin
Note that LIFO is also known as FILO. :-)
Lucero