FREE Delivery in the UK.
In stock.
Dispatched from and sold by Amazon. Gift-wrap available.
C# 4.0 HowTo has been added to your Basket

Dispatch to:
To see addresses, please
Please enter a valid UK postcode.
+ £2.80 UK delivery
Used: Good | Details
Condition: Used: Good
Comment: Ships from USA. Please allow 2 to 3 weeks for delivery. Light shelf wear and minimal interior marks. A tradition of quality and service.
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 3 images

C# 4.0 HowTo Paperback – 1 Mar 2010

5.0 out of 5 stars 3 customer reviews

See all 3 formats and editions Hide other formats and editions
Amazon Price
New from Used from
Kindle Edition
"Please retry"
"Please retry"
£24.99 £10.00
Note: This item is eligible for click and collect. Details
Pick up your parcel at a time and place that suits you.
  • Choose from over 13,000 locations across the UK
  • Prime members get unlimited deliveries at no additional cost
How to order to an Amazon Pickup Location?
  1. Find your preferred location and add it to your address book
  2. Dispatch to this address when you check out
Learn more

Man Booker International Prize 2017
A Horse Walks Into a Bar has won the Man Booker International Prize 2017. Learn more
£24.99 FREE Delivery in the UK. In stock. Dispatched from and sold by Amazon. Gift-wrap available.
click to open popover

Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.

  • Apple
  • Android
  • Windows Phone

To get the free app, enter your mobile phone number.

Product details

  • Paperback: 672 pages
  • Publisher: Sams Publishing; 1 edition (1 Mar. 2010)
  • Language: English
  • ISBN-10: 0672330636
  • ISBN-13: 978-0672330636
  • Product Dimensions: 15.2 x 3.5 x 22.9 cm
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (3 customer reviews)
  • Amazon Bestsellers Rank: 1,404,578 in Books (See Top 100 in Books)
  • If you are a seller for this product, would you like to suggest updates through seller support?

  • See Complete Table of Contents

Product description

From the Back Cover

Real Solutions for C# 4.0 Programmers


Need fast, robust, efficient code solutions for Microsoft C# 4.0? This book delivers exactly what you’re looking for. You’ll find more than 200 solutions, best-practice techniques, and tested code samples for everything from classes to exceptions, networking to XML, LINQ to Silverlight. Completely up-to-date, this book fully reflects major language enhancements introduced with the new C# 4.0 and .NET 4.0. When time is of the essence, turn here first: Get answers you can trust and code you can use, right now!


Beginning with the language essentials and moving on to solving common problems using the .NET Framework, C# 4.0 How-To addresses a wide range of general programming problems and algorithms. Along the way is clear, concise coverage of a broad spectrum of C# techniques that will help developers of all levels become more proficient with C# and the most popular .NET tools.


Fast, Reliable, and Easy to Use!

  • Write more elegant, efficient, and reusable code
  • Take advantage of real-world tips and best-practices advice
  • Create more effective classes, interfaces, and types
  • Master powerful data handling techniques using collections, serialization, databases, and XML
  • Implement more effective user interfaces with both WPF and WinForms
  • Construct Web-based and media-rich applications with ASP.NET and Silverlight
  • Make the most of delegates, events, and anonymous methods
  • Leverage advanced C# features ranging from reflection to asynchronous programming
  • Harness the power of regular expressions
  • Interact effectively with Windows and underlying hardware
  • Master the best reusable patterns for designing complex programs


About the Author

Ben Watson, a software engineer on Microsoft’s Bing team, helps design and implement massively scalable distributed systems and other internals for the Bing search engine. Before joining Microsoft he served as a lead developer for GeoEye, a top provider of satellite imagery. He blogs at, where he has presented many popular coding tutorials in C# and C++.

Customer Reviews

5.0 out of 5 stars
5 star
4 star
3 star
2 star
1 star
See all 3 customer reviews
Share your thoughts with other customers

Top Customer Reviews

Format: Paperback
If you're looking for a 'cookbook' approach to learning C# 4.0, this book provides excellent set of lessons broken down into carefully selected "how-to" problems with detailed solutions. It really transforms the otherwise monotonous reading of C# textbooks to joyful learning through chunks of problem solving.

Based on 27 chapters, and on average about 10 how-to problems per chapter, the book covers important programming concepts encountered in C# 4.0. For a vast field of C# programming language, in my opinion the "how-to" approach taken by this book provides a more effective way of imparting the programming concepts with optimum learning time and print space. Needless to say, the author deserves credit for an effective method he has chosen for otherwise very challenging subject area to cover as conventional textbook.

Code samples used in the book (for all 27 chapters + Appendix) can be downloaded from a website as per the instruction given on page 3.

If you are interested in learning C# 4.0, consider this book your in-house virtual tutor. Highly recommended.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Paperback Verified Purchase
Its not a Beginners book as such - that is almost a put down. It has short concise 'How Tos' for almost everything you can think of. The code download at is real handy and allows you to build up your own class libs easily. The Kindel and PDF versions of this book is one to have on your laptop/phone, tho the PDF is easier. Its not all .net4 eg you can use examples for 3.5, it shows you the way.
This assumes you know C# but just want a cookbook for the 'best way' of doing something. Its almost something that a lead developer would memorise, or you get for your team so they dont bug you.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Paperback Verified Purchase
This is a fantasic great book for all those times you have wanted to do something in c# and had to take a look on google as to how to perform a task. It contains many solutions and in everyday areas that youre going to encounter as a developer wush cas exceptions, the language itself, threading, Linq, networking, generics and much more

Its easy to find the bit youre after and you done need to read pages and pages of text. Its a simple case of find the bit you want and read it. Nice and simple and it works.

Bad points - some of the examples show and too easy for "real world scenarios" but I would argue that its better than you know how to start in some area thats new to you with some assistance from this book and then go off and do some research on your own in that area.

This is definatly one of those handy refernce books that you will need time and time again.
Comment One person found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse

Most Helpful Customer Reviews on (beta) (May include reviews from Early Reviewer Rewards Program) 4.7 out of 5 stars 17 reviews
2 of 2 people found the following review helpful
5.0 out of 5 stars Best Book on C# Algorithms and Tricks Ever 16 May 2010
By Lawrence Maturo - Published on
Format: Paperback Verified Purchase
While this does cover everything in C# 4.0, it is also an advanced class in how to really use C#, and has most of the algorithms you might ever need in C#. Very impressive. It really distills down C# to it's essence. The code is also very instructive and easy to read. It has no documentation in the code, and needs none. I highly recommend this book to anyone who has been using C# for awhile and wants to take it to the next level and produce really professional C# code. For example, do you know how to compare strings if they are not in English? All in all, a really good book. I got the Kindle version for my iPod, and after reading it I went back and ordered the hard copy version.
2 of 2 people found the following review helpful
5.0 out of 5 stars Practical Solutions 17 Mar. 2010
By NoName - Published on
Format: Paperback Verified Purchase
On his website, Ben Watson has frequently treated us to an ongoing series of golden nuggets on how he went about resolving this or that programming challenge while he worked for GeoEye, and later for Microsoft, complete with relevant code and a step-through of his logic. This book is a wide-ranging mother lode of similar C# solutions, in the same crisp and efficient format and voice we were expecting. Better yet -- the code samples are available on the publisher's website, which is great for those who dread fat fingering code. All in all this is a rather nice how-to guide and reference, which seems well suited for beginners, intermediates, and advanced C# users alike.
1 of 1 people found the following review helpful
4.0 out of 5 stars Excellent Book with Good Examples 3 Jun. 2011
By Abbey Gwayambadde - Published on
Format: Paperback Verified Purchase
I am an experienced programmer and I still found this book very useful. The examples in the book are straight forward and easy to learn. After 13 years of development, there was nothing "new" in the book, but it did present "new" ways of doing things in C# 4.0 way.

The book is very diverse covering everything from the basics,WPF, XAML, Silverlight, WCF, etc. The only con is that it tries to cover to much. It would have been more useful had it spent more time on each subject area.

Overall, I would definitely recommend this book.
5.0 out of 5 stars Very useful! 31 Dec. 2012
By D. Suilmann - Published on
Format: Kindle Edition Verified Purchase
I've found over time that I keep returning to this book to solve specific coding problems. The examples have been very useful and quickly get me on the right track. I believe any practicing C# programmer will find this helpful on a regular basis.

I'm not sure how helpful this would be to someone learning the language, but once you get past "Hello World", this can help you produce some useful code.
2 of 3 people found the following review helpful
4.0 out of 5 stars Pretty Great 22 Nov. 2010
By Denise - Published on
Format: Paperback Verified Purchase
This book is a collection of C# code examples that solve hundreds of different problems.

The good news:

The sample code covers a wide range of topics including networks, graphics, printing, storage, databases, hardware interaction, etc.

It is easy to use the `Contents at a Glance' outline to see if a particular topic of interest is covered in the book. I highly recommend looking at the table of contents before buying.

The examples follow a clear `here is a problem,' and `here is a solution' format.

While there is plenty of similar information available free on the web, for example via the Microsoft MSDN portal, Ben Watson's book has been tested with, and takes advantage of VC# 2010 and .Net 4. It also avoids some of the poor coding practice (and non-functional or irrelevant code) that makes it onto the web.

The bad news:

Before using this book, I suggest that a reader needs some knowledge of C#, the .NET Framework, and Windows basics since the embedded comments and explanatory text are rather brief. This should not be the first programming book you pick up.

The text was based on the VC# 2010 beta version. Perhaps for this reason it does not address some implementation details and shortcuts, nor differences between Express and full Visual Studio editions.

Since there is no DVD with the book, it is not possible to copy/paste the code to try the examples, or to graft them into your own programs.
Were these reviews helpful? Let us know