The following code listings are all copy-and-paste friendly.
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 1-6, 8-10 and 26 is available within LINQPad.