When you have questions about C# 12 or .NET 8, this best-selling guide has the answers you need. C# is a language of unusual flexibility and breadth, and with its continual growth, there’s always so much more to learn. In the tradition of O’Reilly’s Nutshell guides, this thoroughly updated edition is simply the best one-volume reference to the C# language available today.
Aimed at intermediate and advanced programmers, this is a book whose explanations get straight to the point, covering C#, the CLR, and the core .NET libraries in depth without long intros or bloated samples.
Get up to speed on C# from syntax and variables to advanced topics such as pointers, closures, and patterns Dig deep into LINQ, with three chapters dedicated to the topic Explore concurrency and asynchrony, advanced threading, and parallel programming Work with .NET features including regular expressions, networking, assemblies, spans, cryptography, and reflection.emit
From the brand

Explore more C# from O’Reilly
More From O’Reilly

Sharing the knowledge of experts
O’Reilly’s mission is to change the world by sharing the knowledge of innovators. For over 40 years, we’ve inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
Publisher : O’Reilly Media
Publication date : December 19, 2023
Edition : 1st
Language : English
Print length : 1083 pages
ISBN-10 : 1098147448
ISBN-13 : 978-1098147440
Item Weight : 2.31 pounds
Dimensions : 6 x 2 x 9 inches
Best Sellers Rank: #119,683 in Books (See Top 100 in Books) #4 in Microsoft .NET #7 in C# Programming (Books) #9 in Microsoft C & C++ Windows Programming
Customer Reviews: 4.7 4.7 out of 5 stars (82) var dpAcrHasRegisteredArcLinkClickAction; P.when(‘A’, ‘ready’).execute(function(A) { if (dpAcrHasRegisteredArcLinkClickAction !== true) { dpAcrHasRegisteredArcLinkClickAction = true; A.declarative( ‘acrLink-click-metrics’, ‘click’, { “allowLinkDefault”: true }, function (event) { if (window.ue) { ue.count(“acrLinkClickCount”, (ue.count(“acrLinkClickCount”) || 0) + 1); } } ); } }); P.when(‘A’, ‘cf’).execute(function(A) { A.declarative(‘acrStarsLink-click-metrics’, ‘click’, { “allowLinkDefault” : true }, function(event){ if(window.ue) { ue.count(“acrStarsLinkWithPopoverClickCount”, (ue.count(“acrStarsLinkWithPopoverClickCount”) || 0) + 1); } }); });
11 reviews for C# 12 in a Nutshell: The Definitive Reference
Add a review
Original price was: $69.99.$48.81Current price is: $48.81.


David K. –
A powerhouse reference to have on your shelf.
I’ve been using C# 12 in a Nutshell for a while now, and I have to say it’s one of the most thorough and technically solid references I’ve come across. The authors do an excellent job of keeping the material up to date with the latest version of C#, and they don’t just skim the surface—they go deep into every part of the language. It’s great for brushing up on advanced topics or learning the new features added in C# 12.That said, this isn’t a book for beginners. The writing assumes you already have a solid grasp of programming fundamentals, and at times the explanations can get pretty dense. Some sections read more like documentation than a teaching guide, so you’ll need patience and a good reason to dive in.Still, if you’re serious about mastering C#, this book is a powerhouse reference to have on your shelf. I find myself going back to it often when I need clear and accurate detail on something specific.Pros:- Extremely detailed and accurate coverage of C# 12- Great reference for experienced developers- Well-organized with solid examplesCons:- Not beginner-friendly- Can feel overly technical or dry at times- Heavy to read straight through—best used as a reference
G. Dimitroulakos –
Very useful Reference. The best of its kind
Describes extensively up to date C# features and .NET libraries. It doesn’t have any about .NET frameworks but this justified because it would have required a separate volume for each framework.It is very nice that devotes one chapter to reference the features of C# per version until the last (12).
B. Kirby –
Great compliment to official docs
While this book can be used as a way to learn C# 12 and .NET 8, and the authors suggest reading the first four chapters in succession, it is clearly intended to be used as a reference and companion for the official MS documentation and other learning sources. I like using it alongside the official documentation, as a way to understand some of the nuances of C# and .NET 8, which sometimes are not included in the official Microsoft documentation.
Joseph Izang –
Its everything I expected
Its everything I expected it to be. A reference book when I want to dive into and read the deep parts of C#
Frank Linux –
great desktop reference
A thorough and well written desktop reference. I keep it handy all semester to remind myself of features and to answer student questions.
jeffrey –
An absolute must
I have the editions for C# 7, 10, and now12 and have read them from front to back. These books cover everything you will need and then some.
A. Clinton – Watkins –
Good reference book
DWeyme –
Straight to the point, toughtfull comments and considerations, so all in all, an amazing overview of C#!Maybe one warning for potential buyers: the author states that the book is targeted towards intermediate/advanced programmers, and this is 100% true. If you are completely new to programming, there are more appropriate books for you.
B –
This book is a very good reference. If you are learning C#, using this book is like using a dictionary to learn a language. I took a star off for that reason, sometimes it can be helpful to have a higher level idea of the “why” and not the “what” or “how”.If you are looking for better C# learning resources, the two books published by packt have a much broader focus which follows a cohesive path.
Helmut Vogl –
Gut
Mauro –
consegna perfetta in orario tutto ok