Head First C# (3rd Edition)

Head First C# (3rd Edition)

Andrew Stellman, Jennifer Greene

Language: English

Pages: 948

ISBN: B017V8PNLE

Format: PDF / Kindle (mobi) / ePub


Head First C# is a complete learning experience for learning how to program with C#, XAML, the .NET Framework, and Visual Studio. Fun and highly visual, this introduction to C# is designed to keep you engaged and entertained from first page to last.

You’ll build a fully functional video game in the opening chapter, and then learn how to use classes and object-oriented programming, draw graphics and animation, and query data with LINQ and serialize it to files. And you'll do it all by creating games, solving puzzles, and doing hands-on projects. By the time you're done, you'll be a solid C# programmer—and you'll have a great time along the way!
• Create a fun arcade game in the first chapter, and build games and other projects throughout the book
• Learn how to use XAML to design attractive and interactive pages and windows
• Build modern Windows Store apps using the latest Microsoft technology
• Learn WPF (Windows Presentation Foundation) using the downloadable WPF Learner's Guide
• Using the Model-View-ViewModel (MVVM) pattern to create robust architecture
• Build a bonus Windows Phone project and run it in the Visual Studio Windows Phone emulator

Projects in the book work with all editions of Visual Studio, including the free Express editions.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

about XAML throughout the second half of the book. You’ll write C# code manipulates the cont that and makes the game rols work. C# Code It’s not unusual for computers in an office to be running an operating system as old as Windows 200 3. With PDF, you can still do the projects in the book. this  No Windows 8? No problem. The first two chapters and the last half of this book have many projects that are built with Visual Studio 2012 for Windows 8, but many readers aren’t running Windows 8

here! The Store menu in the IDE has all of the tools you need to publish your app. In some editions of Visual Studio, the Windows Store options appear under the Project menu instead of having their own top-level Store menu. You can learn more about how to publish apps to the Windows Store here: http://msdn.microsoft.com/en-us/library/windows/apps/jj657972.aspx 48  Chapter 1 Program file Splash screen start building with c# Use the Remote Debugger to sideload your app Sometimes you want to

SomeClasses.cs namespace PetFiler2 { class Dog { public void Bark() { // statements go here } is “public” When a m her it means every otespace class in the nam ethods. can access its m } partial class Cat { public void Meow() { // more statements } MoreClasses.cs namespace PetFiler2 { } } class Fish { public void Swim() { // statements } } partial class Cat { public void Purr() { // statements } } } Since these classes are in the same namespace, they can all “see” each other—even though

joe.ReceiveCash(bob.GiveCash(5)); UpdateForm(); } } 136  Chapter 3 Before you go on, take a minute and flip to #2 in the “Leftovers” appendix, because there’s some basic syntax that we haven’t covered yet. You won’t need it to move forward, but it’s a good idea to see what’s there. objects: get oriented! Objectcross It’s time to give your left brain a break, and put that right brain to work: all the words are object‑related and from this chapter. 1 2 3 4 5 6 7 8 9 10 11 12 13 14

numbers, it will calculate how many miles she’s traveled and figure out how much she should be reimbursed if her company pays her $.39 for every mile she puts on her car. 1 Start with a new Windows Forms project. Make the form look like this: This label is 12 pt bold. Get rid of the minimize and maximize buttons. For the two Numeric Do wn controls, set the MiniUp mu m to 1 and Maximum to 99 property 9999. When you’re done with the form, double-click on the button to add some code to the

Download sample

Download