Classes and Generics

Classes form the building blocks of software development and are essential for building good code. In this chapter, we will be looking at classes and generics and why we need to use them. The recipes we will be covering are as follows:

  • Creating and implementing an abstract class
  • Creating and implementing an interface
  • Creating and using a generic class or method
  • Creating and using a generic interface

Get C# 7 and .NET Core Cookbook 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.