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 ...
Get C# Primer: A Practical Approach now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.