O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

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

Standardizing the Code Base of a Type by Using Generics

Developing a type-safe class such as DynamicList is slightly more complex than developing the Object-based version, but eventually you might need to work with classes and structures that are much more complex. At the same time, when working with classes and structures that manage large amounts of data, you might need to store items of different data types to the same list. Using the Object data type might sound like a good idea, initially, but you should always insist on type safety. Until now, you had only the following possibilities:

  • Create a new version of the processed class for each data type. This is a huge effort that entails an equally large problem: If you find an error in one of ...

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