Chapter 10. Generics


The .NET Framework includes several useful collection classes in the System.Collections namespace. These classes let you manage groups of objects in many useful ways. For instance, the System.Collections.Stack class manages data objects in a last in, first out (LIFO) pancake-style stack. The collection classes work with any type of object or, more accurately, any mixture of objects. A single instance of a collection class can manage integers, strings, employee data objects, Windows Forms instances, and any other type of object you wish to include. But what if you want to only include a single data type? What if you want to require that only a single data type be included in a collection instance? Welcome generics!




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net