O'Reilly logo

C# Primer: A Practical Approach by Stanley B. Lippman

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

5.5. A System Miscellany

In this section we review several useful classes that don't fit into any common category other than miscellaneous. The presentation represents more of a peek than a formal introduction. All of these classes reside directly in the System namespace unless otherwise noted.

5.5.1. The System.Collections.Stack Container

The System.Collections namespace contains a variety of container classes, such as ArrayList (discussed in Section 1.13), Hashtable (Section 1.16), and BitArray (Section 4.9). In general, the container classes store the elements as objects of type object. Value types are boxed and unboxed with each read and write operation. Let's briefly look at the Stack class of the Collections namespace.

The Stack class interface ...

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