Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET collection to support LIFO

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#).

like image 864
Vaccano Avatar asked Dec 03 '22 12:12

Vaccano


1 Answers

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.

like image 149
Mark Rushakoff Avatar answered Dec 27 '22 19:12

Mark Rushakoff