- Series: In a Nutshell
- Paperback: 1088 pages
- Publisher: O'Reilly Media; 1 edition (October 28, 2017)
- Language: English
- ISBN-10: 1491987650
- ISBN-13: 978-1491987650
- Product Dimensions: 5.8 x 2 x 8.8 inches
- Shipping Weight: 3.2 pounds (View shipping rates and policies)
- Average Customer Review: 10 customer reviews
- Amazon Best Sellers Rank: #28,669 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
C# 7.0 in a Nutshell: The Definitive Reference 1st Edition
Use the Amazon App to scan ISBNs and compare prices.
See the Best Books of 2018 So Far
Looking for something great to read? Browse our editors' picks for the best books of the year so far in fiction, nonfiction, mysteries, children's books, and much more.
Frequently bought together
Customers who bought this item also bought
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.
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.
About the Author
Joseph Albahari is author of C# 5.0 in a Nutshell, C# 5.0 Pocket Reference and LINQ Pocket Reference. He also wrote LINQPad - the popular code scratchpad and LINQ querying utility.
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.
Top customer reviews
There was a problem filtering reviews right now. Please try again later.
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.
I do like the authors, so I strongly encourage you to take a look at their software at linqpad.net. If you are looking to purchase this, I would wait for the price to drop. If you can't wait, my advice is purchase the previous edition for $50 or less and then pick up a Udemy course on sale for about $10 like "What's New in C# 7.0 and 7.1?" by Dmitri Netseruk. The other odd thing is this edition is actually listed with less pages than the prior edition.
It's ironic but fitting that an 800 page book has "Nutshell" in the title. There's no fat in this book; every word is needed, but not more. Joseph respects your time; he doesn't fill pages with chatty material, or go over obscure concepts that you're not going to want or need. This is one of those rare gems that serves equally as both a tutorial and a reference. It can be read cover-to-cover, or you can get up to speed on a specific topic.
If you're serious about learning C#, or already know C# but want to get better, this is the book to have.