Head First C#, Second Edition
What you need for this book
We wrote this book using Visual Studio 2010, which uses C# and .NET Framework 4.0. All of the screenshots that you see throughout the book were taken from that edition, so we recommend that you use it. If you're using Visual Studio 2008 Professional, Ultimate, or Premium editions, you'll see some small differences, which we've pointed out wherever possible. You can download Visual Studio 2010 for free from Microsoft's website–it installs cleanly alongside other editions, as well as previous versions of Visual Studio.
Click here for an explanation of Setting up Visual Studio 2010.
Code Viewing and Downloads
Download all the code in the book (zip)
View and download the code by chapter:- (Chapter 1 code is coming soon)
- Chapter 2 Familiar Math Symbols, Time to Start Coding, Code Magnets and Pool Puzzle, Fun with If Else, and Flashy Thing
- Chapter 3 Talker Tester, Clowns, Pool Puzzle, Joe and Bob, and Joe and Bob Part 2
- Chapter 4 Mileage Calculator, Swapping Elephants, Sloppy Joe, Biggest Ears, Code Magnets, Pool Puzzle, and Hit the Keys
- Chapter 5 Party Planner Part 1, Cow Calculator, CableBill, Party Planner Part 2
- Chapter 6 Party Planner Part 2, Mixed Messages, Pool Puzzle, JewelThief, MyBaseClass, Party Planner Part 2 with Inheritance, Bee Management System Part 1, and Bee Management System Part 2
- Chapter 7 Implement the IStingPatrol Interface, TallGuy, Fingers the Clown, PlanetMission, Let's Build a House, and Hide and Seek
- Chapter 8 Playing Card, Shoe Closet, Code Magnets, List of Ducks, Sort of Random Cards, Upcast an Entire List, Build Your Own Overloaded Methods, Two Decks, Dictionary in Action, Retired Jersey Numbers, Go Fish (without solution code), Go Fish, Queue and Stack, and Breakfast for Lumberjacks
- Playing Card (zip)
- Shoe Closet (zip)
- Code Magnets (zip)
- List of Ducks (zip)
- Sort of Random Cards (zip)
- Upcast an Entire List (zip)
- Build Your Own Overloaded Methods (zip)
- Two Decks (zip)
- Dictionary in Action (zip)
- Retired Jersey Numbers (zip)
- Go Fish (without solution code) (zip)
- Go Fish (zip)
- Queue and Stack (zip)
- Breakfast for Lumberjacks (zip)
- Chapter 9 The Swindler Launches Another Diabolical Plan, StreamWriter Magnets, Reading and Writing Using Two Objects, Pool Puzzle, Simple Text Editor, Excuse Manager, Body Parts, Serializable Guy, Serialize a Deck of Cards, Eureka, Use a BinaryWriter , HexDumper Using StreamReader, HexDumper, Excuse Manager (Serializable)
- The Swindler Launches Another Diabolical Plan (zip)
- StreamWriter Magnets (zip)
- Reading and Writing Using Two Objects (zip)
- Pool Puzzle (zip)
- Simple Text Editor (zip)
- Excuse Manager (zip)
- Body Parts (zip)
- Serializable Guy (zip)
- Serialize a Deck of Cards (zip)
- Eureka (zip)
- Use a BinaryWriter (zip)
- HexDumper Using StreamReader (zip)
- HexDumper (zip)
- Excuse Manager (Serializable) (zip)
- Chapter 10 Pool Puzzle, Exception Magnets, and Excuse Manager (Serializable)
- Chapter 11 Baseball, Forms Use Events, ConvertsIntToString Delegate, Secret Ingredients, Pool Puzzle, Baseball (with callbacks), and Whack-a-mole
- Chapter 12 Beehive Simulator
- Chapter 13 BeeControl (Picturebox), BeeControl (UserControl), Beehive Simulator (UserControls), Image Resizing, A 30-Second Tour of GDI+ Graphics, Nectar Here, Sharpen Your Pencil 1, Sharpen Your Pencil 2, Drawing Bees, Zoomer, Beehive Simulator (Graphics), Print a Bee, Beehive Simulator (Printing)
- BeeControl (Picturebox) (zip)
- BeeControl (UserControl) (zip)
- Beehive Simulator (UserControls) (zip)
- Image Resizing (zip)
- A 30-Second Tour of GDI+ Graphics (zip)
- Nectar Here (zip)
- Sharpen Your Pencil 1 (zip)
- Sharpen Your Pencil 2 (zip)
- Drawing Bees (zip)
- Zoomer (zip)
- Beehive Simulator (Graphics) (zip)
- Print a Bee (zip)
- Beehive Simulator (Printing) (zip)
- Chapter 14 Disposing Clones, Disposing Clones (with serialization), A Struct Called Dog, Using Out and Optional Parameters, Robust Guy, Pool Puzzle, Ordinary Human, Extending String, and Extension Magnets
- Chapter 15 LINQ Makes Queries Easy, Jimmy's Commics, LINQ is Versatile, LINQ Magnets, Pool Puzzle, LINQ to SQL, and Starbuzz
- (Appendix code is coming soon)