Records, pattern matching, nullable reference types, Span<T>, source generators, generic math, the field keyword, extension members, and now union types. Ninety-three features have shipped between C# 5 and C# 15, and most developers have picked up a handful along the way. The rest show up in code review, in library source, in a colleague’s pull request, and you’re left wondering whether the language you learned is still the one you’re writing.
Keeping Up with C#, Second Edition is the tour that answers that question. It doesn’t walk the features in release order. It groups them into nine themes (expressiveness, data modeling, control flow, the type system, safety, memory, interop, async, tooling) so you see how they fit together and why they arrived. Then it composes them into eight capstone patterns you’ll recognise from Kestrel, ASP.NET Core and the BCL. Eleven chapters, on .NET 11 and C# 15.
You will learn how to:
• Read modern C# fluently, from C# 1–4 foundations up to the features that shipped on 10 November 2026
• Cut ceremony with primary constructors, collection expressions (now with with(...) arguments), raw string literals and the field keyword
• Model data as values with records, required members and with-expressions, and model closed sets of cases with C# 15 union types
• Let the compiler prove a switch handles every case, over unions and closed hierarchies alike
• Use static abstract members and generic math, extension members and extension indexers, and know which ones work on older runtimes
• Make null a compile-time problem with nullable reference types and the attributes that teach the compiler your try-patterns
• Write allocation-free code with Span<T>, stackalloc, ref structs and pooled buffers, without falling into the stale-memory trap
• Call native code with [LibraryImport], and understand what NativeAOT does and doesn’t change about interop
• Understand async from the state machine up, including .NET 11’s runtime-native async and what it really changes in your stack traces
• Build async pipelines with channels that fail loudly instead of hanging when a stage breaks
• Know which features to adopt first in a legacy codebase, with a four-tier priority matrix and an incremental nullable rollout plan
Every snippet traces back to one of five runnable companion projects: QuantLite (a trade modeller), DevScripts (a developer toolbox with a real incremental source generator), ChatStream (real-time messaging), TypeForge (a type-system playground) and PerfBench (a BenchmarkDotNet harness). All five build with zero warnings on the .NET 11 SDK, and the samples the book calls production patterns ship with failure-path tests. Each chapter ends with exercises, and all 28 worked solutions are in Appendix C and in their own Visual Studio solution.
Written for developers who have written C# for years and feel the language moved on without them, for developers coming from Java, Go, TypeScript or Rust who want the modern idioms, and for leads deciding which features a team should adopt. The book assumes you can read C# 5. It doesn’t assume you’ve used anything past C# 7. Read the first edition? The Second Edition adds C# 15 and .NET 11 across seven chapters, a new capstone pattern, and corrections to first-edition claims, all listed in the release notes.
Buying for a team? Volume licenses are available from 3 copies, with team pricing up to 40% off for larger groups: one purchase, one invoice, a copy for everyone.
The companion code lives at https://github.com/RachidD68/keeping-up-with-csharp