Buy new:
-70% $24.33$24.33
FREE delivery May 2 - 8
Ships from: PACIFIC STARS Sold by: PACIFIC STARS
Save with Used - Acceptable
$10.99$10.99
Ships from: Amazon Sold by: Afghan Attire & Cultural Boutique
Return this item for free
We offer easy, convenient returns with at least one free return option: no shipping charges. All returns must comply with our returns policy.
Learn more about free returns.- Go to your orders and start the return
- Select your preferred free shipping option
- Drop off and leave!

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
C# 7.0 in a Nutshell: The Definitive Reference 1st Edition
Purchase options and add-ons
When you have questions about C# 7.0 or the .NET CLR and its core Framework assemblies, this bestselling guide has the answers you need. Since its debut in 2000, C# has become a language of unusual flexibility and breadth, but its continual growth means there’s always more to learn.
Organized around concepts and use cases, this updated edition provides intermediate and advanced programmers with a concise map of C# and .NET knowledge. Dive in and discover why this Nutshell guide is considered the definitive reference on C#.
- Get up to speed on the C# language, from the basics of syntax and variables to advanced topics such as pointers, operator overloading, and dynamic binding
- Dig deep into LINQ via three chapters dedicated to the topic
- Explore concurrency and asynchrony, advanced threading, and parallel programming
- Work with .NET features, including XML, regular expressions, networking, serialization, reflection, application domains, and security
- Delve into Roslyn, the modular C# 7.0 compiler-as-a-service
- ISBN-101491987650
- ISBN-13978-1491987650
- Edition1st
- PublisherO'Reilly Media
- Publication dateNovember 21, 2017
- LanguageEnglish
- Dimensions5.75 x 2 x 8.75 inches
- Print length1087 pages
There is a newer edition of this item:
Customers who viewed this item also viewed
From the Publisher

From the Preface
C# 7.0 represents the sixth major update to Microsoft’s flagship programming language, positioning C# as a language with unusual flexibility and breadth. At one end, it offers high-level abstractions such as query expressions and asynchronous continuations, while at the other end, it allows low-level efficiency through constructs such as custom value types and optional pointers.
The price of this growth is that there’s more than ever to learn. Although tools such as Microsoft’s IntelliSense—and online references—are excellent in helping you on the job, they presume an existing map of conceptual knowledge. This book provides exactly that map of knowledge in a concise and unified style—free of clutter and long introductions.
Like the past four editions, C# 7.0 in a Nutshell is organized around concepts and use cases, making it friendly both to sequential reading and to random browsing. It also plumbs significant depths while assuming only basic background knowledge—making it accessible to intermediate as well as advanced readers.
This book covers C#, the CLR, and the core Framework assemblies. We’ve chosen this focus to allow space for difficult topics such as concurrency, security, and application domains—without compromising depth or readability. Features new to C# 6 and C# 7 and the associated Framework are flagged so that you can also use this book as a C# 5 and C# 6 reference.
Intended Audience
This book targets intermediate to advanced audiences. No prior knowledge of C# is required, but some general programming experience is necessary. For the beginner, this book complements, rather than replaces, a tutorial-style introduction to programming.
This book is an ideal companion to any of the vast array of books that focus on an applied technology such as ASP.NET, WPF, UWP, or WCF. The areas of the language and .NET Framework that such books omit, C# 7.0 in a Nutshell covers in detail—and vice versa.
If you’re looking for a book that skims every .NET Framework technology, this is not for you. This book is also unsuitable if you want to learn about APIs specific to mobile device development.
What You Need to Use This Book
The examples in this book require a C# 7.0 compiler and Microsoft .NET Framework 4.6/4.7. You will also find Microsoft’s .NET documentation useful to look up individual types and members (which is available online).
While it’s possible to write source code in Notepad and invoke the compiler from the command line, you’ll be much more productive with a code scratchpad for instantly testing code snippets, plus an Integrated Development Environment (IDE) for producing executables and libraries.
![]()
C# 7.0 in a Nutshell
|
![]()
C# 7.0 Pocket Reference
|
|
---|---|---|
Add to Cart
|
Add to Cart
|
|
Customer Reviews |
4.6 out of 5 stars 214
|
4.7 out of 5 stars 95
|
Price | $24.33$24.33 | $1.75$1.75 |
The Definitive Reference | Instant Help for C# 7.0 Programmers |
Editorial Reviews
About the Author
Ben Albahari is the founder of Take On It. He was a Program Manager at Microsoft for 5 years, where he worked on several projects, including the .NET Compact Framework and ADO.NET.
He was the cofounder of Genamics, a provider of tools for C# and J++ programmers, as well as software for DNA and protein sequence analysis. He is cofounder of Auditionist, a casting website for actors in the UK. He is a co-author of C# Essentials, the first C# book from O'Reilly, and of previous editions of C# in a Nutshell.
Product details
- Publisher : O'Reilly Media; 1st edition (November 21, 2017)
- Language : English
- Paperback : 1087 pages
- ISBN-10 : 1491987650
- ISBN-13 : 978-1491987650
- Item Weight : 3.4 pounds
- Dimensions : 5.75 x 2 x 8.75 inches
- Best Sellers Rank: #1,550,816 in Books (See Top 100 in Books)
- #237 in Microsoft .NET
- #270 in Microsoft C & C++ Windows Programming
- #313 in C# Programming (Books)
- Customer Reviews:
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find this C# book to be a great reference with crystal-clear explanations, making it particularly suitable for experienced developers. The content receives positive feedback, with one customer noting it serves as an excellent companion to normal C# training. While many find the writing easy to understand, opinions about readability are mixed.
AI-generated from the text of customer reviews
Select to learn more
Customers find the book provides crystal-clear explanations and serves as a great reference, particularly recommending it for C# learners.
"...Like the book says, this is a compliment to normal C# training. This is best used with a basic knowledge training for each subject." Read more
"...The writing style is clear, concise, and logical. The authors do a great job of illustrating each concept with relevant code snippets and examples...." Read more
"This is a wonderful book. Very technical, so it is a slow read and great for reference...." Read more
"...Anyone who uses C# should have this book as it is a great reference and has everything you need to know even as a beginner." Read more
Customers praise the book's content, particularly noting it is great for experienced developers.
"...As far as information quality, I think this is going to be the perfect book for C#. Like the book says, this is a compliment to normal C# training...." Read more
"I love this book. It gets straight to the point while using as few words as possible to cover a lot of ground...." Read more
"This is a fantastic book, whether you're new to C# or are an experienced C# developer who wants to deepen your knowledge and understanding of the..." Read more
"I was really enjoying this book, getting back up to speed on C# after 12 years, but every time I tried navigating with bookmarks or highlights my..." Read more
Customers have mixed opinions about the book's readability, with some finding it easy to understand and concise, while others find it difficult to follow.
"...The condition of the book is perfect. no writings, highlighting, or markings...." Read more
"I love this book. It gets straight to the point while using as few words as possible to cover a lot of ground...." Read more
"...I love the Kindle platform. But as I have discovered it has problems with technical books...." Read more
"...The writing style is clear, concise, and logical. The authors do a great job of illustrating each concept with relevant code snippets and examples...." Read more
Reviews with images

Dirty
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on October 21, 2017tl;dr
I'm giving this 5 stars for the content in consideration of the authors.
As for the Kindle format and O'Reilly's decision to not sell PDFs ZERO stars.
Long story: I need to learn C# so decided this book would be good. Upon heading over to O'Reilly I discovered the uproar over their decision a few months ago to stop selling PDFs. WOW! - I some response to the uproar about them looking into providing PDFs as part of their Safari Subscription service - but as I couldn't find a link to purchase the PDF and I'm not interested in a $400 subscription I decided to try the Kindle version.
I've got at least a hundred Kindle books in my library - all non-technical book - e.g. novels, non-fiction etc. I love the Kindle platform. But as I have discovered it has problems with technical books. The first problem is that it does not allow you to scroll pages. As a programmer you often need to see ON ONE SCREEN a section of code. Unfortunately, with Kindle (I'm using kindle on a mac) you can only see page n or page n+1. You cannot view the bottom half of page n and the top half of page n+1. For a general reading book this is not a problem. For studying code or long tables it is frustrating.
Second problem is with cut and paste. Programmers often read parts of technical books and then copy some section of the code from the book and then paste it into their development environment (e.g vi / Vistual Studio / whatever). Unfortunately this simply does not work as expected.
Here's an example line code as displayed in the Kindle reader:
Task.Run (() => Console.WriteLine ("Foo"));
Here's how it ends up pasted (either into a terminal window with vi running Visual Studio)
Task.Run (() = > Console.WriteLine (" Foo"));
Albahari, Joseph; Albahari, Ben. C# 7.0 in a Nutshell: The Definitive Reference (Kindle Locations 16438-16439). O'Reilly Media. Kindle Edition.
Notice the additional line showing the author, title, etc. Now that is annoying but I can relatively easily delete that line and go about my work.
The more insidious problem is the insertion of a space inserted between the "=" and the ">" characters (e.g. => vs. = >)
This is a syntax error and causes this line of code to not compile and is not that easy to spot - especially when you are trying to learn a new language! You can imagine the *fun* that ensues when several or dozens or more lines end up with numerous syntax errors. You end up fixing bugs due to a broken copy/paste function ! (also notice the extra space character added before Foo - "Foo" vs " Foo" - while not a syntax error this could introduce a logic error - even worse and harder to debug than a syntax error)
In conclusion, in my opinion, the Kindle format (at least as produced by O'Relly ?) is not a substitute for the PDF format for technical books.
- Reviewed in the United States on June 18, 2022I was worried from reading reviews that my book would not arrive. The tracking should it had been picked up by third party shipper but USPS was waiting for it. It took about a week or so before it arrived to USPS but I received it before the original due date. The condition of the book is perfect. no writings, highlighting, or markings.
As far as information quality, I think this is going to be the perfect book for C#. Like the book says, this is a compliment to normal C# training. This is best used with a basic knowledge training for each subject.
- Reviewed in the United States on October 3, 2021I love this book. It gets straight to the point while using as few words as possible to cover a lot of ground. sometimes the lack of detailed explaining makes it hard to grasp a few concepts, but most of time it is all I need and is a real time saver for learning. this book is for people who just want to learn C# and it's features. It is basically a console driven book( at least for C# fundamentals)
- Reviewed in the United States on November 26, 2018Paddings between book center and text on pages are too small for such large book thickness,
so it is almost not possible to open book enough widely for comfortable reading.
- Reviewed in the United States on February 8, 2018This is a fantastic book, whether you're new to C# or are an experienced C# developer who wants to deepen your knowledge and understanding of the language and its core libraries. (Note that this book does assume a certain level of general programming experience). The writing style is clear, concise, and logical. The authors do a great job of illustrating each concept with relevant code snippets and examples. LINQPad, the freemium utility developed by the authors, is a very useful companion to the book (and is also quite impressive as a software achievement). For those who commented that the price of this edition is more expensive than previous editions, it's worth noting that this book clocks in at 1,035 pages. Hats off to the Albaharis for producing a phenomenal work of depth and breadth.
- Reviewed in the United States on February 7, 2019I was really enjoying this book, getting back up to speed on C# after 12 years, but every time I tried navigating with bookmarks or highlights my Kindle reader would freeze, then crash. Granted, my Kindle is a Fire, which is horrendously slow, but no other Kindle books I've read on it (MANY) have had any issues whatsoever. Amazon was kind enough to give me a refund (removing it from my library).
==========
Edit: So I purchased the print version for twice the price, I'm sure it will be worth it ;-)
- Reviewed in the United States on December 17, 2019This is a wonderful book. Very technical, so it is a slow read and great for reference.
The C# 7.0 Pocket Reference is an exact duplicate of the first 4 chapters of this book, so I wish I had not bought that one. (Maybe I'm just stupid and was supposed to know that.)
- Reviewed in the United States on May 27, 2020I had read a copy of an earlier edition that a friend had lent me but wanted one of my own. Anyone who uses C# should have this book as it is a great reference and has everything you need to know even as a beginner.
Top reviews from other countries
- SACHIN KUMAR PATELReviewed in India on March 23, 2018
5.0 out of 5 stars Five Stars
Best book to learn C#
- Shamsur RahmanReviewed in Australia on June 30, 2018
5.0 out of 5 stars Five Stars
Excellent book that covers all aspects of C#
- ArlydReviewed in the United Kingdom on November 30, 2020
5.0 out of 5 stars Superseded by C# 8.0 in a Nutshell
Boy was I surprised by this book. The name suggested to me that it was going to be a pocket-sized book with just the good stuff but it turned out to be biggest book on my shelf. That's a pretty big nutshell!
What I would say though is this book has been superseded by C# 8.0 in a Nutshell by the same authors so unless you can find this for a really good deal it may not be worth buying anymore. In fact, I brought this for around £35 and then purchased C# 8.0 in a Nutshell in a Humble Bundle deal for around £10 with a bunch of other books. I doubt it'll be that price again but definitely shop around. At the time of writing this book is going for £63.99 (!!!) on Amazon and C# 8.0 is going for £45.99 so maybe think twice...
The book generally starts by covering basics of C# and it's syntax before going into Advanced C# and then going off into the .NET Frameworks - Date Times, Enums, Linq, File I/O, Networking, Serialization, it's all there. However if it's your first programming book, stay away. It's designed for people who have some experience in mind. Ideally you want to be writing some code before you start dissecting this book.
-
Dr. Chrilly DonningerReviewed in Germany on November 24, 2019
5.0 out of 5 stars Die Nussschale bleibt auch als Tanker auf Kurs
Aus der Nussschale ist mit 1072 Seiten ein Tanker geworden. Den Albahari Brüdern gelingt es jedoch den hohen Standard früherer Auflagen zu halten. Es ist sicherlich die beste und detaillierteste Einführung in C#. Wobei man aber - wenn man ein Windows-Desktop Programm schreibt - noch weitere Unterlagen braucht. Es wird u.A. das WPF und ADO Framework nicht behandelt. Das würde jeden Rahmen sprengen. Die Autoren beschränken sich richtiger Weise auf die Sprachkonstrukte und die unmittelbaren "System-Libraries".
Ich bin ein großer Go-Fan. Für ein Projekt muss ich jedoch eine Open-Access-Datenbank lesen. Die Unterstützung dafür ist in C# wesentlich besser. Ich habe schon viel in Java programmiert. Die Sprachen sind ähnlich, aber C# spricht mich mehr an. Im Gegensatz zu einem 2-Sterne Reviewer hat sich mein Buch - obwohl ich fleissig darin lese und nachschlage - bisher nicht aufgelöst.
Mein Urteil weicht bei anderen Programmierbüchern oft weit vom allgemeinen Konsensus ab. Bei diesem bleibt mir aber gar nichts Anderes übrig als es ebenfalls mit 5 Sternen zu bewerten. Es ist einfach gut.
-
Lucas Rosales NavasReviewed in Spain on January 3, 2020
5.0 out of 5 stars Muy rico en contenido.
Todo un libro de referencia.