Chapter 12. Generics

This chapter discusses generics, a feature that has been a part of C# since its 2005 release. While Microsoft still has a few hiccups to remove, generics have the potential to save you a ton of programming effort. In this chapter, you will learn about the following:

  1. Generics

  2. The advantages generics offer

  3. Boxing and unboxing

  4. Runtime type checking

  5. Interfaces

  6. Recursion

Generics offer you a way to stretch your programming time in ways that just make sense. Let's examine what this relatively new OOP feature has to offer.

Get Beginning C# 3.0 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.