Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition
by Paul J. Deitel - Deitel & Associates, Inc., Harvey M. Deitel - Deitel & Associates, Inc.
25.1. Introduction
In Chapter 24, we presented data structures that store and manipulate Object references. You could store any Object in these data structures. One inconvenient aspect of storing Object references occurs when retrieving them from a collection. An application normally needs to process specific types of objects. As a result, the Object references obtained from a collection typically need to be downcast to an appropriate type to allow the application to process the objects correctly. In addition, data of value types (e.g., Integer and Double) must be boxed to be manipulated with Object references, which increases the overhead of processing such data. Also, processing all data as type Object limits the Visual Basic compiler’s ability ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access