Chapter 17. Developing with Generics

Introduction

Generics are not new to Microsoft Visual Basic 2010; they’ve been around since Visual Basic 2005. Generics are a way to create a single code base that can accommodate many different types, and they are an invaluable tool for developing robust applications. Many of the classes you use every day are based on generics—whether those are Nullables, generic collections such as List(Of T) or Collection(Of T), or generic delegates like Action(Of T), Function(Of T), or Tuple(Of T). They’re also a central component of Microsoft Language-Integrated Query (LINQ), a querying technology that ...

Get Microsoft® Visual Basic® 2010 Developer’s Handbook 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.