Have one to sell? Sell yours here
C# in a Nutshell (In a Nutshell (O'Reilly))
 
See larger image
 
Tell the Publisher!
I’d like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

C# in a Nutshell (In a Nutshell (O'Reilly)) [Paperback]

Peter Drayton , Ben Albahari , Ted Neward
4.5 out of 5 stars  See all reviews (2 customer reviews)

Available from these sellers.


Formats

Amazon Price New from Used from
Paperback --  
Paperback, 8 Mar 2002 --  
Amazon.co.uk Trade-In Store
Did you know you can trade in your old books for an Amazon.co.uk Gift Card to spend on the things you want? Plus, get an extra £5 Gift Certificate when you trade in books worth £10 or more before June 30, 2012. Visit the Books Trade-In Store for more details.
There is a newer edition of this item:
C# in a Nutshell (In a Nutshell (O'Reilly)) C# in a Nutshell (In a Nutshell (O'Reilly)) 4.5 out of 5 stars (2)
Currently unavailable


Product details

  • Paperback: 864 pages
  • Publisher: O'Reilly Media; 1 edition (8 Mar 2002)
  • Language English
  • ISBN-10: 0596001819
  • ISBN-13: 978-0596001810
  • Product Dimensions: 22.6 x 15.5 x 4.1 cm
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon Bestsellers Rank: 331,326 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Authors

Discover books, learn about writers, and more.

Product Description

Amazon.co.uk Review

C# in a Nutshell was inevitable, much like the dawn or your liability for income tax. As the C# language has gathered speed--it's one of the languages that Microsoft encourages you to use for .NET development--its users have anticipated the release of an authoritative reference to the language and its key APIs. That's what this book is: a reference, meant to give you a few chapters on basic structure and syntax before launching into categorised and alphabetised listings of classes and their members. It's sufficiently well written and organised that, given experience with other distributed application environments and some knowledge of .NET, you could learn the language from this book alone. However, this is not a tutorial for people new to Microsoft programming, or new to network computing.

The syntax guide is clear and concise, with brief statements of what operators, data structures and syntax elements are for. There also are examples (both generic and with illustrative data) in that section. The API reference is organised by namespace (System, System.Collections, System.Reflection, System.XML, and so on), with each section containing an alphabetical list of members. Each listing includes syntax guides to the element's constructors, methods and properties, as well as a hierarchy statement and lists of other classes from which instances of the current member is returned and to which it is passed. Don't look for examples in the API reference, but the author's prose statements about the purpose of classes should help you along the way to a working application. --David Wall

Topics covered: the key System namespaces of the C# programming language and their most important members, covered in API reference format. Sections deal with (among others) System, System.Collections, System.NET, System.NET.Sockets, System.Runtime.Interopservices and System.XML. There's also a syntax guide and references to regular expressions and data marshalling in the C# language.

Salt Lake City ColdFusion User Group, June 2002

"C# In A Nutshell is the most complete reference manual of the C# language and the .NET framework that I have come across."

Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product)
 
(4)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

3 star
0
2 star
0
1 star
0
Most Helpful Customer Reviews
8 of 8 people found the following review helpful
Format:Paperback
Part I of this book is solid gold. It condenses a lot of information in a very readable (and standard O'Reilly) way. It runs down through all the standard coding statements, syntax and algorithms without any fluff explaining the whats and whys. This clearly marks the book for intermediates coming from a different programming language background rather than someone new to coding.

There are no surprises from the normal O'Reilly Nutshell look and feel, it's a consistent book that provides you with a good overview of the C# functionality and a good map for using the correct .NET objects.

The first two parts of this book contain very straight forward code examples demonstrating C#'s language syntax more than anything. Part II of the book goes into working with .NET framework's concepts like Collections, String Builders, Serialization and Reflection et al. There are some nice chapters that demonstrate the basics of using C# with .NET, allowing the programmer to gain a quick and easy overview.

The Nutshell series tend to be very good books and this book is a personal favourite of mine as the authors where not restricted to explaining the use of C# in a set environment or mixed up with other technologies. It's solid C# in it's most purest form.

Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
By J. S. Hardman TOP 1000 REVIEWER VINE™ VOICE
Format:Paperback
C# in a Nutshell (second edition) is an excellent book. It is now dated however, as the C# language and the .Net Framework have both moved on since this book was published. If you are working with Visual Studio 2003 and .Net Framework 1.x then buy this book. However, if you are now working with Visual Studio 2010 and .Net 4.x then it's probably best to go straight for the latest version of this book - C# 4.0 in a Nutshell.

If you go for this older book, then I would summarise it as follows. It contains four parts.

Part 1 covers the C# language, succinctly but in a useful amount of detail. It is not a tutorial suitable for beginners to programming, but is ideal for developers experienced in other languages who are migrating to C#.

Part 2 covers the .Net framework, providing an overview of commonly used parts of .Net. Like part 1, it is not suitable for complete beginners, but provides a great overview for existing developers.

Part 3 covers use of XML documentation tags in your code (the C# equivalent of JavaDoc), naming conventions, and most significantly an overview of various development tools that are used when working in C# environments.

Part 4 is an API quick reference, which I find useful, but which the C# 4.0 book no longer contains (it is one of those things that grows as .Net gets bigger, and most people seem to take the view that you can access that information online). Personally, I'll be keeping both this version and the C# 4.0 version of this book on my desk, the old version as I find that reference useful.

There are a number of useful appendixes too.

Basically, this is a great book for existing developers who are moving to, or who have recently moved to, working in C#. The authors managed to make it very readable too, which is very impressive given how much information is condensed into this book. Highly recommended if you are still using an early version of C# and .Net, but otherwise go for a more recent version (e.g. C# 4.0 in a Nutshell) even though that C# 4.0 version is not as readable.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com:  15 reviews
58 of 58 people found the following review helpful
A reference for C# programmers 15 July 2002
By John Osborn - Published on Amazon.com
Format:Paperback
I'm the publisher of "C# in a Nutshell" and given my admitted interest in the success of this book I would not ordinarily post a comment in this space. However, a previous reviewer suggests that we should have stated more explicitly which .NET namespaces and types the book covers and explained
the rationale behind our decisions. He also faults us for omitting a number of important namespaces, including System.Web and System.Remoting.

If this view is widely shared, then clearly we need to add such information to the next edition. But since a revision lies somewhere in the future, for those of you considering purchase of "C# in a Nutshell" today, here are some answers.

First, the complete list of the 22 .NET Framework namespaces documented in the 450-page "C# in a Nutshell" API Quick Reference is a follows:

Microsoft.Win32
System
System.Collections
System.Collections.Specialized
System.Diagnostics
System.Globalization
System.IO
System.IO.Isolated

System.NET
System.NET.Sockets
System.Reflection
System.Reflection.Emit
System.Runtime.InteropServices
System.Runtime.Serialization
System.Runtime.Serialization.Formatters
System.Text
System.Text.RegularExpressions
System.Threading
System.Timers
System.Xml
System.Xml.XPath
System.Xml.XSL

These namespaces comprise more than 700 types, and thousands of members, which are listed in a quick-lookup format that complements, we believe, the syntax used by the official Microsoft documentation.

O'Reilly customers who have purchased "Java in a Nutshell" or other Nutshell titles already know that the series aims to provide experienced professionals with usable quick references that are reasonably complete, but not exhaustive. In the case of C# (and Visual Basic .NET), our idea was to first match the coverage of the Java Standard Edition core classes found in our best-selling "Java in a Nutshell," and to then add additional namespaces that were core to programming the .NET platform itself.

The first criterion clearly required us to document the System namespace, as well as more specialized namespaces for threading, collections, reflection, diagnostics, and so on. The second led us to include serialization, COM interop, and the Microsoft.Win32 types needed to interact with the Windows
platform. In addition, because XML is so core to .NET, we included the most important XML namespaces as well.

We decided early to exclude the specialized .NET libraries for building Windows and web applications, web services, and data-access applications. We felt these libraries deserved volumes of their own: "Windows Forms in a Nutshell," "ASP.NET in a Nutshell," and "ADO.NET in a Nutshell."

We had a hard time deciding what to do about remoting, enterprise services, security and a number of other important .NET libraries. In the end, we decided these would be of interest mostly to enterprise application builders and should also be presented in a Nutshell of their own, much like "Java Enterprise in a Nutshell."

In the end, we hope our readers will appreciate "C# in a Nutshell" as a reference for C# programmers that also documents the core runtime .NET libraries most programers need to complete their basic tasks: manipulating strings,
performing mathematical operations, doing I/O, and so on. In this respect, the book resembles existing core volumes on C, C++, and Java, where one would expect coverage of the C standard library, STL or the Java 2 SDK, Standard Edition.

Thanks for the feedback -- we rely on our customers to tell us when we've missed the mark. We'd welcome additional feedback from Amazon.com readers about "C# in a Nutshell." And as the previous reviewer has suggested, we'll try to be clearer about our choices in the next edition.

(I'm giving the book 3 stars in an attempt to avoid unfairly influencing its rating.)

32 of 32 people found the following review helpful
C# in a Nutshell 16 April 2003
By David Cunningham - Published on Amazon.com
Format:Paperback
The Nutshell series published by the O'Reilly group has become so ubiquitous in the IT world that it needs very little introduction. As the preface of C# in a Nutshell states, the aim of the series is to become the desktop reference for whatever technology is covered by each book. In this case, O'Reilly aims to make this book the must-have reference for all C# programmers. This review will focus on the points that any good reference book should address, namely: brevity, completeness, correctness, and usefulness. Unfortunately, my own personal knowledge of C# is restricted to what was discussed in .NET Essentials (another O'Reilly publication), so I won't be able to be as critical of the correctness as I would like. My conclusions are thus based on short tests that I ran to check the validity of the claims made in the book.

C# in a Nutshell scores high marks in both the brevity and correctness categories. Humorous as it might be to label an 830-page book as brief, it actually qualifies as such. The main discussion of the language is kept to the first 270 pages, with an average of about 20 pages devoted to each subject. Only the essentials are discussed, and that will usually be enough when you need to quickly look up how to do something. The remaining 560 pages are devoted to a Quick Reference of the .NET framework classes. While reading the text, I never came across any glaring inconsistencies, such as conflicting descriptions of how to accomplish a task, which leads me to suspect that the text is mostly correct. The few actual tests I ran worked as expected. On a superficial level, I found the content credible.

When it came to completeness, I wasn't as impressed. As a reader, I have somewhat of a personal bias: I'm pretty familiar with both C++ and Java. I also suspect that this knowledge is shared by a large percentage of this book's audience. As a consequence, I found myself wishing that the advanced features particular to this language had been covered more thoroughly, and that the description of features shared by C++, Java, or both, had been trimmed down a bit. I found the sections on Custom Attributes, Serialization and Threading to be especially light, given that they are all core features of the C# language. I also found the two sections dealing with integration of legacy components (DLLs and COM) to be somewhat inadequate for professionals who actually need to deal with these issues. However, I do understand the balancing act that has to be done to keep this book brief. I would have wanted more emphasis on the unique features and considerations associated with this new language, and less on the basics. On the other hand, the authors should be commended for the range of topics they manage to touch on in such a small number of pages. Certain topics, such as Diagnostics and Command-line tools, are fully described and could easily have been forgotten.

My real beef with the completeness of this book is related to the 500+ page SDK Quick Reference. Let's start with the good: The descriptions of the classes and their uses are verbose, and useful. The Quick Reference is logically divided up according to the .NET package divisions, and each description includes a very good UML diagram showing you where each class fits into the grand scheme of things. Now the bad: Though the class interfaces are fully detailed, there is no description whatsoever of the actual method parameters, and how they will be used internally. From a programmer's perspective, this is extremely annoying. Here's an example of what I mean: The class System.Timers.Timer has a property called interval that can be set through the constructor, or through property accessors. Without a proper description, one might imagine that this property relates to the interval at which the Timer does what it does (in this case, throws an Event.) However, we have no idea what units the interval property is using. Do we specify the units in seconds? In milliseconds? In nanoseconds, even? We have no idea, and we can only figure it out by trying it ourselves. You can imagine how frustrating this would be for properties where the answer is not so easily discovered.

The second major issue I have with this book is the unadvertised omission of the System.Windows.Forms and System.Web namespaces in the Quick Reference. It seems as if these GUI-related namespaces have been saved for Programming C#, but I found their omission in this book to be questionable, at the very least. I wouldn't complain if the namespaces were at least described briefly in the Quick Reference, but they aren't even mentioned once. This choice renders the book practically useless on its own for anyone who wishes to add a visual interface to his or her program, which, unless you're writing server code, is nearly everyone. I think that if the goal of this book is for it to be the only desktop reference you'll need, then in this respect it has failed. Similar to the Java in a Nutshell / JFC in a Nutshell combo, you'll probably need both this book and Programming C# for a complete reference from O'Reilly.

All in all, it is hard not to recommend this book for anyone who plans to work with C#. Its description of the language basics is thorough, the advanced features are at least brought up and discussed, and the reference, for all its flaws, will be considered useful by most. In particular, I appreciated the UML diagrams included in the book, placing it one step ahead of the Microsoft documentation. However, the book is somewhat incomplete, and you will most likely want to get Programming C# (convenient, isn't it?) and keep that bookmark to Microsoft's online documentation, at least to look up what the function parameters actually do.

7 of 7 people found the following review helpful
Just what I wanted 11 Nov 2003
By wiredweird - Published on Amazon.com
Format:Paperback
When I need to learn a language, the last thing I want is a book that tries to teach it to me. Their teaching jut gets in the way of my learning.

This book serves my needs ideally. It is a reference, not a tutorial. It covers the whole language and most or all of the standard API, in a book of modest length. Of course, that sacrifices detail. Fine. When I need information, I'll look here to find out what system facility does my job, then use the system help for details. This book really is the index that the help system lacks.

This goes on the shelf next to Flanagan's "Java in a Nutshell." I have no higher praise for a language book.

Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Listmania!


Look for similar items by category


Look for similar items by subject


Feedback