Book Review: C# 3.0 Cookbook [O'Reilly]

A review of the new O'Reilly book, "C# 3.0 Cookbook" by Jay Hilyard and Stephen Teilhet

C# 3.0 Cookbook is an updated  version of the popular book to C# 3.0 and the .NET 3.5 platform. This new edition offers more than 250 code recipes for a broad range of  problems that C# programmers face. More than a third of the recipes have been rewritten to take advantage of new C# 3.0 features.

There is  a new chapter on LINQ (language integrated query), and two expanded chapters for recipes for extension methods, lambda functions, object initializers, new synchronization primitives and more. This new edition of the book is also complemented by a public wiki, which not only includes all of the C# 2.0 recipes from the previous edition that remain unchanged by the release of C# 3.0, but invites you to suggest better ways to solve those tasks.

Here are some of topics covered:
  • LINQ
  • Numeric data types and Enumerations
  • Strings and characters
  • Classes and structures
  • Generics
  • Collections
  • Exception handling
  • Delegates, events, and lambda expressions
  • Filesystem interactions
  • Web site access
  • XML usage (including LINQ to XML, XPath and XSLT)
  • Networking
  • Threading
  • Data Structures & Algorithms
Each recipe in the book includes tested code that you can download from oreilly.com and reuse in your own applications, and each one includes a detailed discussion of how and why the underling technology works.

This is not a book designed for you to learn C# 3.0 from; it is a book that presents, in a logical way, a series of common programming problems with concise solutions and code examples illustrating C# 3.0 techniques on how to solve them. There is a whole lot of brand new "stuff" in the book, including threading, web, Xml and even an illustration of the (finally) unrestricted .NET 3.5 Managed Named Pipes architecture. Among other cool tricks, you'll learn how to inspect and change your Web Application configuration, use the UriBuilder class, use events to make threads cooperate, lock subsections of a file, and all kinds of cool Generics examples.

Overall, I'd recommend this to intermediate level developers who already have achieved a good level of mastery of the C# language and the .NET Framework.  You can view more about the book here, and you can preview the code samples too.

The sticker price is $54.99 USD but you can always find lower prices at online book discounters.
By Peter Bromberg   Popularity  (1644 Views)