views:

75

answers:

1

I need a .NET that supports last in first out (LIFO).

Is there one? If there are more than one what is the best? (I plan to put Form objects in it.)

Any suggestions?

(NOTE: The collection needs to be on the Compact Framework. I am using Visual Studio 2008 and C#).

+14  A: 

There's the Stack<T> class, which is pretty much the purest LIFO you could ask for.

It is supported in the Compact Framework 2.0.

Mark Rushakoff
Sweet! that is what I need! Thanks!
Vaccano