Head First C#
Jennifer Greene
Andrew Stellman
Beijing Cambridge Farnham Kln Sebastopol Tokyo
This book is dedicated to the loving memory of Sludgie the Whale, who swam to Brooklyn on April 17, 2007.
You were only in our canal for a day, but youll be in our hearts forever.
Special Upgrade Offer
If you purchased this ebook directly from oreilly.com, you have the following benefits:
DRM-free ebooksuse your ebooks across devices without restrictions or limitations
Multiple formatsuse on your laptop, tablet, or phone
Lifetime access, with free updates
Dropbox syncingyour files, anywhere
If you purchased this ebook from another retailer, you can upgrade your ebook to take advantage of all these benefits for just $4.99. to access your ebook upgrade.
Please note that upgrade offers are not available from sample content.
A Note Regarding Supplemental Files
Supplemental files and examples for this book can be found at http://examples.oreilly.com/0636920027812/. Please use a standard desktop web browser to access these files, as they may not be accessible from all ereader devices.
All code files or examples referenced in the book will be available online. For physical books that ship with an accompanying disc, whenever possible, weve posted all CD/DVD content. Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to .
Advance Praise for Head First C#
Head First C# is a great book, both for brand new developers and developers like myself coming from a Java background. No assumptions are made as to the readers proficiency yet the material builds up quickly enough for those who are not complete newbiesa hard balance to strike. This book got me up to speed in no time for my first large scale C# development project at workI highly recommend it.
Shalewa Odusanya, Technical Account Manager, Google
Head First C# is an excellent, simple, and fun way of learning C#. Its the best piece for C# beginners Ive ever seenthe samples are clear, the topics are concise and well written. The mini-games that guide you through the different programming challenges will definitely stick the knowledge to your brain. A great learn-by-doing book!
Johnny Halife, Chief Architect, Mural.ly
Head First C# is a comprehensive guide to learning C# that reads like a conversation with a friend. The many coding challenges keep it fun, even when the concepts are tough.
Rebeca Duhn-Krahn, founding partner at Semphore Solutions
Ive never read a computer book cover to cover, but this one held my interest from the first page to the last. If you want to learn C# in depth and have fun doing it, this is THE book for you.
Andy Parker, fledgling C# programmer
Its hard to really learn a programming language without good engaging examples, and this book is full of them! Head First C# will guide beginners of all sorts to a long and productive relationship with C# and the .NET Framework.
Chris Burrows, developer for Microsofts C# Compiler team
With Head First C# , Andrew and Jenny have presented an excellent tutorial on learning C#. It is very approachable while covering a great amount of detail in a unique style. If youve been turned off by more conventional books on C#, youll love this one.
Jay Hilyard, software developer, co-author of C# 3.0 Cookbook
Id reccomend this book to anyone looking for a great introduction into the world of programming and C#. From the first page onwards, the authors walks the reader through some of the more challenging concepts of C# in a simple, easy-to-follow way. At the end of some of the larger projects/labs, the reader can look back at their programs and stand in awe of what theyve accomplished.
David Sterling, developer for Microsofts Visual C# Compiler team
Head First C# is a highly enjoyable tutorial, full of memorable examples and entertaining exercises. Its lively style is sure to captivate readersfrom the humorously annotated examples, to the Fireside Chats, where the abstract class and interface butt heads in a heated argument! For anyone new to programming, theres no better way to dive in.
Joseph Albahari, C# Design Architect at Egton Medical Information Systems, the UKs largest primary healthcare software supplier, co-author of C# 3.0 in a Nutshell
[ Head First C# ] was an easy book to read and understand. I will recommend this book to any developer wanting to jump into the C# waters. I will recommend it to the advanced developer that wants to understand better what is happening with their code. [I will recommend it to developers who] want to find a better way to explain how C# works to their less-seasoned developer friends.
Giuseppe Turitto, C# and ASP.NET developer for Cornwall Consulting Group
Andrew and Jenny have crafted another stimulating Head First learning experience. Grab a pencil, a computer, and enjoy the ride as you engage your left brain, right brain, and funny bone.
Bill Mietelski, software engineer
Going through this Head First C# book was a great experience. I have not come across a book series which actually teaches you so well....This is a book I would definitely recommend to people wanting to learn C#
Krishna Pala, MCP
Praise for other Head First books
I feel like a thousand pounds of books have just been lifted off of my head.
Ward Cunningham, inventor of the Wiki and founder of the Hillside Group
Just the right tone for the geeked-out, casual-cool guru coder in all of us. The right reference for practical development strategiesgets my brain going without having to slog through a bunch of tired stale professor-speak.
Travis Kalanick, Founder of Scour and Red Swoosh Member of the MIT TR100
There are books you buy, books you keep, books you keep on your desk, and thanks to OReilly and the Head First crew, there is the penultimate category, Head First books. Theyre the ones that are dog-eared, mangled, and carried everywhere. Head First SQL is at the top of my stack. Heck, even the PDF I have for review is tattered and torn.
Bill Sawyer, ATG Curriculum Manager, Oracle
This books admirable clarity, humor and substantial doses of clever make it the sort of book that helps even non-programmers think well about problem-solving.
Cory Doctorow, co-editor of Boing Boing Author, Down and Out in the Magic Kingdom and Someone Comes to Town, Someone Leaves Town
I received the book yesterday and started to read it...and I couldnt stop. This is definitely trs cool. It is fun, but they cover a lot of ground and they are right to the point. Im really impressed.
Erich Gamma, IBM Distinguished Engineer, and co-author of