September 2014
Intermediate to advanced
396 pages
7h 58m
English
CHAPTER 14
![]()
Generics
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
—Douglas Adams
In this chapter, I introduce generics. This feature was introduced in version 2.0 of the .NET Framework and is supported by all of the Microsoft Visual Studio 2013 languages. You will learn how generics can help us solve a variety of problems that arise when we wish to build classes that act on different types of data without sacrificing type safety. In this chapter, we will also begin using a variety of .NET Framework classes to create more interesting and instructive ...
Read now
Unlock full access