Chapter 2. Types and Exceptions

Before you begin drilling down into the Microsoft .NET Framework class library (FCL) and the various programming models that it supports, it’s helpful to understand what the FCL is made of. The FCL is a library of “types,” which is a generic way of referring to classes, structs, interfaces, enumerations, and delegates. This chapter defines these terms and will make Chapter 3 more meaningful to developers who are new to the .NET Framework. This chapter also introduces some potential pitfalls related to types, including common errors that arise when using types that encapsulate file handles and other resources that aren’t managed by the garbage collector.

Understanding the .NET Framework’s type system and the differences ...

Get Programming Microsoft® .NET now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.