C# Cookbook, 2nd Edition (Cookbooks (O'Reilly))
|
| List Price: | $54.99 |
| Price: | $46.43 & eligible for FREE Super Saver Shipping on orders over $25. Details |
Availability: Usually ships in 24 hours
Ships from and sold by Amazon.com
24 new or used available from $8.71
Average customer review:Product Description
With "C# Cookbook, 2nd Edition," you'll be able to learn and improve your mastery of both the C# language and the .NET platform. This updated bestseller has been completely revised to account for C# 2.0, the latest version of this popular object-oriented programming language. It also includes more than 100 new code solutions (over 300 overall) to common problems and tasks that you're sure to face as a C# programmer.
Nearly every solution, or "recipe," contains a complete, documented code sample showing you how to solve the specific problem, as well as a detailed discussion of how and why the underling technology works. This question-solution-discussion format is a proven teaching method, as any fan of O'Reilly's "Cookbook" series can attest to. In fact, no other source offers a learn-as-you-go format quite like this.
"C# Cookbook, 2nd Edition" is organized into 20 chapters, each of which focuses on a particular topic in creating C# solutions. Here are just some of what's covered: Numeric data types Strings and characters Classes and structures Generics Exception handling Delegates, events, and anonymous methods Filesystem interactions Web site access XML usage (including XPath and XSLT) Networking Threading Unsafe code
Best of all, you don't have to be an experienced C# or .NET developer to use "C# Cookbook, 2nd Edition," You just have to be someone who wants to solve a problem now, without having to learn all the related theory first.
Product Details
- Amazon Sales Rank: #173635 in Books
- Published on: 2006-01-30
- Format: Illustrated
- Original language: English
- Number of items: 1
- Binding: Paperback
- 1184 pages
Editorial Reviews
Amazon.com Review
The O'Reilly Cookbook series, with its to-the-point but illuminating coverage of programming subjects, meets the challenge of explaining how to write software as well as anything else on the market. When you're facing a coding problem--particularly in a language you're new to or haven't used in a while--and know there must be a proven way to solve it, the right Cookbook can often get you going in a hurry. C# Cookbook applies the formula to the language of Microsoft .NET, and is an addition to the line that more than a few programmers will appreciate.
Don't count on this book to solve big tasks for you. "I need some C# software that integrates with Avaya telephone switches and Siemens databases...:" No. Rather, this book shows you how to do the little jobs (converting an array to a delimited string, monitoring the event log, creating a bounded hashtable, and so on) that can stand in the way of prompt completion of a project. What's more, the coverage isn't limited to code samples. Stephen Teilhet and Jay Hilyard take advantage of the Cookbook series' Problem-Solution-Discussion format to teach you a thing or two about C#. You'll refer to this book often for quick answers and explanations. --David Wall
Topics covered: How to solve small but non-trivial problems in the C# programming language. Each of 17 chapters covers a major area of C# functionality--networking, regular expressions, filesystem, security, and so on--and contains a dozen or two entries on how best to solve programming problems.
About the Author
Jay Hilyard has been developing applications for the Windows platform for over 15 years and for .NET for more than 7 of those. Jay has published multiple articles in MSDN Magazine and he currently works on the New Product Team at Newmarket International in Portsmouth, NH. When not immersed in .NET, Jay spends his time with his family and rooting for the Patriots.
Stephen Teilhet earned a degree in electrical engineering, but soon afterwards began to write software for the Windows platform. For the last 11 years, he's worked for several consulting firms on a wide range of projects, specializing in Visual Basic, Visual C++, MTS, COM, MSMQ, and SQL Server. He has been working with the .NET technologies since the pre-alpha version of the 1.0 .NET framework was being developed by Microsoft. Currently he works for Ounce Labs where he is working on enhancing their static security code analysis tool to find vulnerabilities in several languages including the .NET languages.
Customer Reviews
Wish I'd started with this
[Reviewed by XPSD member Steve Grubbs]
Summary
I wanted to check out a C# cookbook after developing in C# for almost a year. I figured I should get a basic understanding of the language and the .NET framework by using it for awhile before I buy such a book. That said, I wish I could go back in time and tell myself to get the C# Cookbook the day I started developing in C#.
Overall Review
I see two main criteria for reviewing a programming language cookbook.
1. The quality of each "recipe"
2. The recipes chosen for the book
The C# Cookbook handles each recipe very well, which we should definitely demand of a cookbook. It has a very simple 4-section format, Problem-Solution-Discussion-See Also. The problem is briefly stated first. The solution is almost entirely code samples, with minimal commentary. The discussion is usually short and sweet, with a few exceptions. The "see also" points to reference topics in the MSDN help, which is of questionable usefulness, since you can search the topics yourself; but, is short enough to skim over easily.
The recipes chosen for the C# Cookbook range from very useful to trivial. One of the trivial examples would be something like, converting degrees to radians. The only language specific feature here is Math.PI, which I don't think is worth the page it's printed on. What I found surprisingly useful were some code samples that I spent time coming up with on my own before reading this book, like a custom trace class that outputs in XML. Fortunately, most of the examples were in the useful category.
A few glaring topic omissions are remoting, ADO, and advanced object serialization.
Per-Chapter Review
* Numbers - somewhat trivial
* Strings and Characters - good introduction to the C# string
* Classes and Structures - good stuff on interfaces, casting, converting, COM interop
* Enumerations - simple, but short and useful
* Exception Handling - an underrated topic that I'm happy to see covered
* Diagnostics - a surprisingly useful set of tools to help with debugging
* Delegates and Events - very good intro for the new C# programmer
* Regular Expressions - very good intro for the new C# programmer
* Collections - a little simple, could have more useful samples
* Data Structures and Algorithms - simple, but good if more advanced types are required
* Filesystem I/O - very good examples of file I/O in C#
* Reflection - a necessary intro to reflection, but a bit simple
* Networking - biggest complaint: Why is there no remoting?
* Security - a good survey of various security issues in C#
* Threading - a good intro to threads and basic synchronization in C#
* Unsafe Code - I tore out and burned this section
* XML - good intro to reading/writing XML in C#
Learn to boil water!
This is a good intro book that eliminates the need for some of the first books I bought on C#. When compared to other "cookbooks", however, this book is incredibly weak (see: XSLT Cookbook, SQL Cookbook). If you have used C# for more than 6 months, you will know how to iterate over an array, to use String.IsNullOrEmpty, get the index of a value within a string, and use a generic arraylist. These are just some of the junior "recipes" you'll see in this book. The "recipes" just exercise the fundamentals (i.e. how to boil water) rather than how the fundamentals work together to solve complex problems in elegant ways. The easier the concept, the more information. There isn't really any analysis or best-practice justification present. I'd like to see some performance analysis of generics or at least some depth on partial methods. Nothing to see here for mid-level developers. Not written or organized poorly, just simple. If it were titled "Intro to C# by example", I'd give it a higher score.
Clear, Concise and Detailed examples
I'm an intermediate coder, familiar with programming and I have about 1.5 years programming C#. I've already used this book(C# Cookbook 2nd edition) to write C# code navigating in and around directories and files. The examples in the book regarding "Directory Info" and "File Info" were so clear and concise, I was able to complete my programming task with almost no lost time to the learning process. What I like most was that there was not one example, but many examples for the most used functionalities. This book has already paid for itself when I consider the time it saved me the first time I needed it!




