8th Edition. — Addison-Wesley/Pearson, 2023. — 196 p. — (Early Release).
Updated for the Microsoft C# 12.0 Long Term Support (LTS) release, Essential C# 12.0 is a well-organized, no-fluff C# guide, suitable for every programmer. Building on the proven high-value content of previous editions, world-class C# expert Mark Michaelis illuminates key enhancements in C# 12, including any-type aliases, inline arrays, default lambda expression parameters, expanded support for primary constructors, and experimental interceptors.
Through a set of extension methods and lambda expressions, the programming API called Language Integrated Query (LINQ) provides a far superior API for working with collections.1 In fact, in earlier editions of this book, the chapter on collections came immediately after the chapter on generics and just before the one on delegates. However, lambda expressions were so fundamental to LINQ that it is no longer possible to cover collections without first covering delegates (the basis of lambda expressions). Now that you have a solid foundation in lambda expressions from the preceding two chapters, we can delve into the details of collections—a topic that spans three chapters. In this chapter, the focus begins with standard query operators—a means of leveraging LINQ via direct invocation of extension methods.
Preface
Introducing C#
Data Types
More with Data Types
Operators and Control Flow
Methods and Parameters
Classes
Inheritance
Interfaces
Introducing Structs and Records
Well Formed Types
Exception Handling
Generics
Delegates and Lambda Expressions
Events
Collection Interfaces with Standard Query Operators
LINQ with Query Expressions
Building Custom Collections
Reflection, Attributes, and Dynamic Programming
Introducing Multithreading
Programming the Task Based Asynchronous Pattern
Iterating in Parallel
Thread Synchronization
Platform Interoperability and Unsafe Code
The Common Language Infrastructure