Compartir a través de


C# 3.0 Cookbook, Third Edition: More than 250 solutions for C# 3.0 programmers

By Jay Hilyard, Stephen Teilhet
O'Reilly Media
Release Date: December 2007
Pages: 896

Completely updated for C# 3.0 and the .NET 3.5 platform, the new edition of this bestseller offers more than 250 code recipes to common and not-so-common problems that C# programmers face every day. Every recipe in the book has been reconsidered with more than a third of them rewritten to take advantage of new C# 3.0 features. If you prefer solutions you can use today to general C# language instruction, and quick answers to theory, this is your book.

C# 3.0 Cookbook offers a new chapter on LINQ (language integrated query), plus two expanded chapters for recipes for extension methods, lambda functions, object initializers, new synchronization primitives and more. The new edition is also complemented by a public wiki, which not only includes all of the C# 2.0 recipes from the previous edition 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. You don't have to be an experienced C# or .NET developer to use C# 3.0 Cookbook. You just have to be someone who wants to solve a problem now, without having to learn all the related theory first.

Full List of Chapters:

  • Chapter 1. Language Integrated Query (LINQ)
  • Chapter 2. Strings and Characters
  • Chapter 3. Classes and Structures
  • Chapter 4. Generics
  • Chapter 5. Collections
  • Chapter 6. Iterators, Partial Types, and Partial Methods
  • Chapter 7. Exception Handling
  • Chapter 8. Diagnostics
  • Chapter 9. Delegates, Events, and Lambda Expressions - Available Online
  • Chapter 10. Regular Expressions
  • Chapter 11. Data Structures and Algorithms
  • Chapter 12. Filesystem I/O
  • Chapter 13. Reflection
  • Chapter 14. Web
  • Chapter 15. xml
  • Chapter 16. Networking
  • Chapter 17. Security - Available Online
  • Chapter 18. Threading and Synchronization - Available Online
  • Chapter 19. Toolbox - Available Online
  • Chapter 20. Numbers and Enumerations