Understanding Generics


The most primitive container for application data within the .NET platform is the System. Array class. As you saw in Chapter 4, VB 2010 arrays allow you to define a set of identically typed items (including an array of System. Objects, which essentially represents an array of any type of data) of a fixed upper limit. While basic arrays can be useful to manage small amounts of known data, there are many other times where you require a more flexible data structure, such as a dynamically growing and shrinking container, or a container that can only hold objects that meet a specific criteria (e.g., only objects deriving from a specific base class or only objects implementing a particular interface).


Base Class Understanding Generic Type Parameter Reference Type Generic Collection 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Andrew Troelsen, Vidya Vrat Agarwal 2010

Personalised recommendations