O'Reilly logo

Visual Basic® 2012 Unleashed, Second Edition by Alessandro Del Sole

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

Chapter 14. Generics and Nullable Types

When you organize your home, you probably place things according to their type. For example, you have a place for food that is different from the place where you put clothes. But foods are also different. You do not treat fish like candy or pizza and so on. So you need safe places for each kind of food, avoiding the risks derived from treating all foods the same way; the same is true for clothes and any other item in your home. The .NET development would be similar without Generics. Consider groups of .NET objects of different types, all grouped into a collection of Object. How can you be sure to treat ...

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