I just uploaded the PDF version of the book Practical .NET2 and C#2 2nd edition, 878 pages, and its 647 compilable code listings. This material is now available for free
I authored the first edition of this book in Frenh, published by O’Reilly France mid 2003 and the second edition on .NET2 was published late 2005. The english version was published in 2006 Q2, by Paradoxal Press. Unfortunately, you’ll see some translation issues in this English version. Also, I know a Chinese version has been published later but unfortunately I’ve never seen the paper version (any feedback on this is welcomed).
There are no .NET3 nor above edition of this book. In 2006 I started working on the first pro version of NDepend delivered in Feb 2007. Since then, it was just not timely possible to update the book version.
Writing a book of 878 pages has been a 14 non consecutive months, full time job. Financially speaking, the work was half rewarded by book sales, and utterly rewarded by the consultant and trainer reputation the book offered to me. Another significant reward was to hold in my hands the paper version, result of all this work. Also, thanks to the book, I became a MVP C# in 2003. I also learnt concretely what it was to create a significant project by myself, something that was (and still is) very useful when working on NDepend pro. But certainly, the most important benefit has been the .NET and C# deep knowledge I got from writing this book.
A point that was essential to me was to provide a … well … practical book. This is why more than 600 C# listing examples came with the book, to demonstrate though a practical way all non-trivial points exposed. I still often browse these code samples to get refreshment on certain API.
14 months full time is certainly an unusually high investment in writing a technical book. From what I know, a technical book is typically written by several authors in parallel, that dedicate 3 to 6 months half-time (night time?), each. Back in 2006, I sincerely don’t think there were any equivalent book. Things have evolved and today, my books choice concerning C# and .NET are C# in a Nutshell authored by Joseph and Ben Albahari (the creator of LinqPAD) and, the amazing C# in Depth authored by Jon Skeet, that I already praised. Both these books result in an unusually high writing investment, and offer the reader, an authored vision of the .NET platform and C# language.
Hopefully I believe Practical .NET2 and C#2 2nd edition can still offer value to the reader, as long as he’s not concerned by C#3 and C#4 stuff … and it is free Here is the book table of content:
An interesting part in the book , is the deep presentation of anonymous methods, closures and iterators covered in chapter 14. It represents a deep coverage of these features that, at that time, sounded like an obscur syntax sugar in others C# materials. Today, we know that it was provided in C#2 as a foundation of LINQ Anonymous methods were actually overridden by lambda expression, but are still supported. Example 14-46 shows actually how to use this feature to write a pipeline LINQ like query, and example 14-50 shows how to compute prime numbers using this pipeline trick.