Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


When you need to look up the essentials of C# 4.0 language syntax and usage, or locate key information in the .NET base class libraries, this concise reference helps you find it quickly. C# 4.0 in a Nutshell thoroughly covers C# 4.0 programming as implemented in Microsoft's Visual Studio 2010, including new CLR 4.0 features such as dynamic typing and the PLINQ/TPL threading libraries. Free of clutter and long introductions, this book provides a complete map of C# 4.0 knowledge in a succinct and unified style:

  • Opening chapters concentrate purely on C#, starting with the basics of syntax, types and variables, and finishing with advanced topics such as unsafe code and preprocessor directives

  • Later chapters cover the core .NET 4.0 Framework, including such topics as LINQ, XML, collections, I/O and networking, memory management, reflection, attributes, security, threading, application domains, and native interoperability

C# 4.0 in a Nutshell ideal for any experienced programmer, whether you're new to C# or familiar with previous versions of the language.

Subscriber Reviews

Average Rating: 4.869565217391305 out of 5 rating Based on 23 Ratings

"Great C# reference" - by Anonymous on 12-APR-2012
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I am an experienced programmer (C) but not an experienced C# or Windows programmer.  I have been developing a prototype program using C#, OpenGL (through the OpenTK library), and Windows Forms for a real-time video visualization.  This book has been valuable in providing a crash course in C# and as a general reference text.  Highly recommended for anyone who may be in the same boat as myself.
Report as Inappropriate

"Software Engineer" - by Sophia on 08-FEB-2012
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
A good C# book, especially for catching up with new technology in new version of .net framework.
Report as Inappropriate

"a pleasure to read, lots of useful info" - by oldbrazil on 29-JAN-2010
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I did not read the whole book yet, but I already can tell this a very good book. It explains clearly advanced topics while keeping the needed precision: it does not try too hide complexity and do not get you lost in false or useless explanations.

The chapter about "Types" gives precise definitions of what a "type", a "variable" (...) are. This could seem obvious or too detailed. In fact, it prevents you to mix up things when dealing with more advanced subjects.

I also read the part about "delegates" and "events" : I've never seen it better explained as in this book. The text is clear, concise, and still manage to give you the details about how things work.

I'm confident than the rest of the book will be equally useful to me.

Report as Inappropriate

Table of Contents



The publisher has provided additional content related to this title.


Visit the catalog page for C# 4.0 in a Nutshell, 4th Edition

  • Catalog Page

Visit the errata page for C# 4.0 in a Nutshell, 4th Edition

  • Errata

Download the supplemental electronic content for C# 4.0 in a Nutshell, 4th Edition

  • Supplemental Content