C# in a Nutshell


C# in a Nutshell provides C# programmers with a concise and thorough reference to the language in one straightforward and accessible volume. Designed as a handbook for daily use, this book is an essential guide to the C# language and the base class APIs of the .NET Framework. Programmers will want to keep this book next to their keyboards for years to come.The heart of the book is a succinct but detailed reference to the C# language and the .NET types most essential to C# programmers. Each chapter in the API ...

See more details below
Available through our Marketplace sellers.
Other sellers (Paperback)
  • All (23) from $1.99   
  • New (3) from $38.40   
  • Used (20) from $1.99   
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
Seller since 2015

Feedback rating:



New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

Brand New Item.

Ships from: Chatham, NJ

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
Seller since 2015

Feedback rating:


Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Seller since 2015

Feedback rating:


Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Sort by
Sending request ...


C# in a Nutshell provides C# programmers with a concise and thorough reference to the language in one straightforward and accessible volume. Designed as a handbook for daily use, this book is an essential guide to the C# language and the base class APIs of the .NET Framework. Programmers will want to keep this book next to their keyboards for years to come.The heart of the book is a succinct but detailed reference to the C# language and the .NET types most essential to C# programmers. Each chapter in the API reference begins with an overview of a .NET namespace and a diagram of its types, including a quick-reference entry for each type, with name, assembly, category, description, member availability, class hierarchy, and other relevant information, such as whether the type is part o the ECMA CLI specification. Newly updated for .NET Framework version 1.1, the second edition also adds a CD that allows you to integrate the book's API Quick Reference directly into the help files of Visual Studio .NET 2002 & 2003, giving you direct access to this valuable information via your computer.In addition to the API reference section, this book includes:

  • An accelerated introduction to the C# language and the .NET Common Language Runtime
  • A tutorial section on using C# with the core classes of the .NET Framework Class Library to perform common tasks such as manipulating strings, I/O, and interacting with legacy components
  • Comprehensive language and tool reference chapters, including a C# syntax summary, a list of XML documentation tags, and a guide to command-line tools that ship with Visual Studio .NET and the .NET Framework
  • Appendixes with reference tables for regular expression syntax, format specifiers, a C# keyword glossary, namespace/assembly cross-reference, and a type and member index for determining in which type a method or field is defined.
Every once in a while, a book becomes the de-facto standard for a technology, operating system, or programming language—which is exactly what C# in a Nutshell has done in a single straightforward and easy to use volume. There is no more complete, up-to-date reference to the C# Language available.
Read More Show Less

Editorial Reviews

From Barnes & Noble
The Barnes & Noble Review
Java. Perl. VB. Whatever the language, developers have come to rely on O'Reilly's In a Nutshell guides for concise, expert tutorials combined with fast-access, reliable reference information. A programming language hasn't really come of age until there's an In a Nutshell for it -- and there's now an excellent one for Microsoft's C#.

C# hasn't been here long, but this is already the second C# book by Peter Drayton and Ben Albahari. Last year, they worked with the C# alpha to write Essential C#, one of the first (and best) hands-on introductions to C#. Albahari also wrote A Comparative Overview of C#, the Web's most widely cited comparison of C# with C, C++, and Java. Put simply, C# in a Nutshell is authoritative.

The authors start with an overview of the C# language itself: its goals, what makes it different, how it relates to the .NET Runtime, and the potential impact of Microsoft's decision to submit C# for ECMA standardization. In Part 2, they move on to the essentials of programming with C#: basic syntax, object-oriented techniques, the language's powerful unified type system, and more.

Since (in the short term at least) virtually all C# development is also .NET development, the authors present thorough coverage of .NET programming with C#, starting with a practical overview of the Framework Class Library. You'll find coverage of strings, collections, XML, networking, I/O, serialization, assemblies, reflection, custom attributes, memory management, threading, and more. There's also example-rich coverage of integrating with both native DLLs and COM components.

As with most In a Nutshell books, the second half offers a comprehensive reference. Coverage includes C# syntax, XML documentation tags, C# naming and coding conventions, and development tools. There's also a soup-to-nuts API quick-reference covering collections, reflection, serialization, XML, diagnostics, Microsoft.Win.32, and a whole lot more. (Bill Camarda)

Bill Camarda is a consultant, writer, and web/multimedia content developer with nearly 20 years' experience in helping technology companies deploy and market advanced software, computing, and networking products and services. He served for nearly ten years as vice president of a New Jersey-based marketing company, where he supervised a wide range of graphics and web design projects. His 15 books include Special Edition Using Word 2000 and Upgrading & Fixing Networks For Dummies®, Second Edition.

Read More Show Less

Product Details

  • ISBN-13: 9780596005269
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 8/18/2003
  • Series: In a Nutshell (O'Reilly) Series
  • Edition description: Second Edition
  • Edition number: 2
  • Pages: 928
  • Product dimensions: 5.90 (w) x 9.04 (h) x 1.69 (d)

Meet the Author

Peter Drayton is an independent consultant, helping early-stage companies define and build systems that take advantage of technologies such as .NET, SOAP, XML, and COM+. Peter is also an instructor for DevelopMentor, where he teaches Essential C#.NET. Originally from Cape Town, South Africa, Peter now lives in the San Francisco Bay Area with his wife, Julie. He spends his spare time researching .NET and tinkering with a small flotilla of computers cluttering up their a partment. He can be reached at peter@razorsoft.com.

Ben Albahari is cofounder of Genamics, a provider of tools for C# and J++ programmers, as well as software for DNA and protein sequence analysis. He is author of A Comparative Overview of C#, a frequently cited comparison of C# with C/C++ and Java that was recently named by DevX as one of the top 10 .NET sites. Ben is a resident of Perth, Australia, and in his spare time enjoys composing music on his computer. He can be reached at ben@genamics.com.

Ted Neward is an independent software development architect and mentor in the Sacramento, California area. He is the author of a number of books, including Server-Based Java Programming (Manning), the forthcoming EffectiveEnterprise Java (Addison-Wesley) and Shared Source CLI Essentials (O'Reilly) and co-author of C# In a Nutshell (O'Reilly) with Peter Drayton and Ben Albahari. He is also an instructor with DevelopMentor, where he teaches and authors both the Java and .NET curriculum. He speaks frequently for technology user groups and writes technical papers for www.javageeks.com and www.clrgeeks.com. He currently labors on behalf of the University of California, Davis, architecting a rebuild of the Davis Accounting and Financial Information Services software system. Past clients include companies like Pacific Bell, EdFund, Synergex and Intuit.

Read More Show Less

Table of Contents

Contents of This Book;
Assumptions This Book Makes;
Conventions Used in This Book;
Related Books;
C# Resources Online;
How to Contact Us;
How the Quick Reference Is Generated;
Programming with C#;
Chapter 1: Introducing C# and the .NET Framework;
1.1 The C# Language;
1.2 The .NET Framework;
1.3 ECMA Standardization;
1.4 Changes in Visual C# 2003;
Chapter 2: C# Language Basics;
2.1 A First C# Program;
2.2 Identifiers and Keywords;
2.3 Type Basics;
2.4 Value Types and Reference Types;
2.5 Predefined Types;
2.6 Arrays;
2.7 Variables and Parameters;
2.8 Expressions and Operators;
2.9 Statements;
2.10 Namespaces;
Chapter 3: Creating Types in C#;
3.1 Classes;
3.2 Inheritance;
3.3 Access Modifiers;
3.4 Structs;
3.5 Interfaces;
3.6 Enums;
Chapter 4: Advanced C# Features;
4.1 Delegates;
4.2 Delegates Versus Function Pointers;
4.3 Delegates Versus Interfaces;
4.4 Events;
4.5 Operator Overloading;
4.6 Try Statements and Exceptions;
4.7 Attributes;
4.8 Unsafe Code and Pointers;
4.9 Preprocessor Directives;
4.10 XML Documentation;
Programming with the .NET Framework;
Chapter 5: Framework Class Library Overview;
5.1 Core Types;
5.2 Text;
5.3 Collections;
5.4 Streams and I/O;
5.5 Networking;
5.6 Threading;
5.7 Security;
5.8 Reflection and Metadata;
5.9 Assemblies;
5.10 Serialization;
5.11 Remoting;
5.12 Web Services;
5.13 Data Access;
5.14 XML;
5.15 Graphics;
5.16 Rich Client Applications;
5.17 Web-Based Applications;
5.18 Globalization;
5.19 Configuration;
5.20 Advanced Component Services;
5.21 Diagnostics and Debugging;
5.22 Interoperating with Unmanaged Code;
5.23 Compiler and Tool Support;
5.24 Runtime Facilities;
5.25 Native OS Facilities;
5.26 Undocumented Types;
Chapter 6: String Handling;
6.1 String Class;
6.2 StringBuilder Class;
6.3 Regular Expression Support;
6.4 Regular Expression Basics;
6.5 Procedural- and Expression-Based Patterns;
6.6 Cookbook Regular Expressions;
Chapter 7: Collections;
7.1 Iterating Over Collections;
7.2 Standard Collection Interfaces;
7.3 Predefined Collection Classes;
7.4 Ordering Instances;
7.5 Generating Hash Code;
Chapter 8: XML I/O;
8.1 Accessing XML Documents;
8.2 Parsing an XML Stream;
8.3 Selecting Nodes Using XPath;
8.4 Transforming a Document Using XSLT;
Chapter 9: Networking;
9.1 Network Programming Models;
9.2 Generic Request/Response Architecture;
9.3 HTTP-Specific Support;
9.4 WebClient;
9.5 Adding New Protocol Handlers;
9.6 Using TCP, UDP, and Sockets;
9.7 Using DNS;
Chapter 10: Streams and I/O;
10.1 Streams and Backing Stores;
10.2 Encapsulating Raw Streams;
10.3 Directories and Files;
10.4 Isolated Storage;
Chapter 11: Serialization;
11.1 What Is Serialization?;
11.2 Serialization Support in the Framework;
11.3 Explicit Serialization;
11.4 Implicit Serialization;
11.5 [Serializable];
11.6 [NonSerialized];
11.7 IDeserializationCallback;
11.8 ISerializable;
11.9 [Serializable] and ISerializable;
Chapter 12: Assemblies;
12.1 Elements of an Assembly;
12.2 Assemblies and Modules;
12.3 Scoping Types and Type References;
12.4 Naming and Signing Assemblies;
12.5 Resolving and Loading Assemblies;
12.6 Deployment;
12.7 Security Permissions;
Chapter 13: Reflection;
13.1 Type Hierarchy;
13.2 Types, Members, and Nested Types;
13.3 Retrieving the Type for an Instance;
13.4 Retrieving a Type Directly;
13.5 Reflecting Over a Type Hierarchy;
13.6 Late Binding;
13.7 Advanced Uses of Reflection;
13.8 Creating New Types at Runtime;
Chapter 14: Custom Attributes;
14.1 Language Support;
14.2 Compiler Support;
14.3 Runtime Support;
14.4 Predefined Attributes;
14.5 Defining a New Custom Attribute;
14.6 Retrieving a Custom Attribute at Runtime;
Chapter 15: Memory Management;
15.1 The Garbage Collector;
15.2 Optimization Techniques;
15.3 Finalizers;
15.4 Dispose and Close Methods;
Chapter 16: Threading;
16.1 Thread Synchronization;
16.2 Common Thread Types;
16.3 Asynchronous Delegates;
Chapter 17: Integrating with Native DLLs;
17.1 Calling Into DLLs;
17.2 Marshaling Common Types;
17.3 Marshaling Classes and Structs;
17.4 In and Out Marshaling;
17.5 Callbacks from Unmanaged Code;
17.6 Simulating a C Union;
17.7 Mapping a Struct to a Binary Format;
17.8 Predefined Interop Support Attributes;
Chapter 18: Integrating with COM Components;
18.1 Binding COM and C# Objects;
18.2 Exposing COM Objects to C#;
18.3 Exposing C# Objects to COM;
18.4 COM Mapping in C#;
18.5 Common COM Interop Support Attributes;
18.6 COM+ Support;
Chapter 19: Diagnostics;
19.1 Logging and Assertion Facilities;
19.2 Conditional Compilation;
19.3 Debugger Integration;
19.4 Processes, Threads, and Stacks;
19.5 Event Logs;
19.6 Performance Counters;
Chapter 20: C# Language Reference;
Language and Tools Reference;
Chapter 21: XML Documentation Tag Reference;
Chapter 22: C# Naming and Coding Conventions;
22.1 Case;
22.2 Mechanics;
22.3 Word Choice;
22.4 Namespaces;
Chapter 23: C# Development Tools;
API Quick Reference;
Chapter 24: How to Use This Quick Reference;
24.1 Finding a Quick-Reference Entry;
24.2 Reading a Quick-Reference Entry;
Chapter 25: The Microsoft.Win32 Namespace;
Chapter 26: System;
Chapter 27: System.Collections;
Chapter 28: System.Collections.Specialized;
Chapter 29: System.Diagnostics;
Chapter 30: System.Globalization;
Chapter 31: System.IO;
Chapter 32: System.IO.IsolatedStorage;
Chapter 33: System.Net;
Chapter 34: System.Net.Sockets;
Chapter 35: System.Reflection;
Chapter 36: System.Reflection.Emit;
Chapter 37: System.Runtime.InteropServices;
Chapter 38: System.Runtime.Serialization;
Chapter 39: System.Runtime.Serialization.Formatters;
Chapter 40: System.Text;
Chapter 41: System.Text.RegularExpressions;
Chapter 42: System.Threading;
Chapter 43: System.Timers;
Chapter 44: System.Xml;
Chapter 45: System.Xml.XPath;
Chapter 46: System.Xml.Xsl;
Regular Expressions;
Format Specifiers;
Picture Format Specifiers;
DateTime Format Specifiers;
Data Marshaling;
C# Keywords;
Namespaces and Assemblies;
Type, Method, Property, Event, and Field Index;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)