O'Reilly logo

Delphi for .NET Developer’s Guide by Xavier Pacheco

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

System.Collections Classes

The System.Collections namespace includes several prebuilt classes that you can use to manage lists of various sorts. The following sections cover them.

The Stack Collection

The Stack collection stores objects according to a first-in-last-out (FILO) basis. To add objects, one pushes them onto the Stack. To remove them, one pops them from the Stack.

The Stack implements the ICollection, IEnumerable, and ICloneable interfaces.

Note

The ICloneable interface is not a member of the System.Collections namespace. It is a member of the System namespaces, and it defines the Clone() method which is used to create a new, identical object.

Stack Properties and Methods

The methods that you will primarily be using with the Stack ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required