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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access