26. Generics

…our special individuality, as distinguished from our generic humanity.

—Oliver Wendell Holmes, Sr.

Every man of genius sees the world at a different angle from his fellows.

—Havelock Ellis

Born under one law, to another bound.

—Lord Brooke

OBJECTIVES

In this chapter you’ll learn:

Image To create generic methods that perform identical tasks on arguments of different types.

Image To create a generic Stack class that can be used to store objects of any class or interface type.

To understand how to overload generic methods with nongeneric methods ...

Get C# 2008 For Programmers Third Edition Deitel® Developer Series 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.