Code Listings

The following code listings are all copy-and-paste friendly.

Code Listings for C# 5.0 in a Nutshell

NB: All code listings for Chapters 2-10, 14, 20, 22, 23 and 26 are available as interactive samples in LINQPad.
Go to LINQPad's samples tree view (bottom left) and click Download more samples to get all of the above chapters.

Chapter 11: Other XML Technologies

Chapter 12: Disposal and Garbage Collection

Chapter 13: Code Contracts and Diagnostics

Chapter 15: Streams and I/O

Chapter 16: Networking

Chapter 17: Serialization

Chapter 18: Assemblies

Chapter 19: Reflection and Metadata

Chapter 20: Dynamic Programming

Chapter 21: Security

Chapter 24: Application Domains

Chapter 25: Native Interop

Code Listings for C# 4.0 in a Nutshell

Chapter 7: Collections

Chapter 11: Other XML Technologies

Chapter 12: Disposal and Garbage Collection

Chapter 13: Code Contracts and Diagnostics

Chapter 14: Streams and I/O

Chapter 15: Networking

Chapter 16: Serialization

Chapter 17: Assemblies

Chapter 18: Reflection and Metadata

Chapter 19: Dynamic Programming

Chapter 20: Security

Chapter 21: Threading

Chapter 22: Parallel Programming

Chapter 23: Asynchronous Methods

Chapter 24: Application Domains

Chapter 25: Native Interop

Code from chapters 2-10, 19, 22 and 26 is available within LINQPad.

Code Listings for C# 3.0 in a Nutshell

Chapter 1: Introducing C# and the .NET Framework

Chapter 2: C# Language Basics

Chapter 3: Creating Types in C#

Chapter 4: Advanced C#

Chapter 6: Framework Fundamentals

Chapter 7: Collections

Chapter 8: LINQ Queries

Chapter 9: LINQ Operators

Chapter 10: LINQ to XML

Chapter 11: Other XML Technologies

Chapter 13: Streams and I/O

Chapter 14: Networking

Chapter 15: Serialization

Chapter 16: Assemblies

Chapter 17: Reflection and Metadata

Chapter 18: Security

Chapter 19: Threading

Chapter 20: Asynchronous Methods

Chapter 21: Application Domains

Chapter 22: Integrating with Native DLLs

Chapter 23: Diagnostics

Chapter 24: Regular Expressions

 

Download all as zip file

 

© 2007-2012, Joe Albahari, Ben Albahari and O'Reilly Media, Inc. All rights reserved

C# 5.0 in a Nutshell
Buy from amazon.com Available now