Get C# 5.0 All-in-One For Dummies now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.
Visit www.dummies.com/cheatsheet/csharp5aio to view this book's cheat sheet.
Table of Contents
What’s New in C# 5.0
About This Book
What You Need in Order to Use This Book
Conventions Used in This Book
How to Use This Book
How This Book Is Organized
Book I: The Basics of C# Programming
Book II: Object-Oriented C# Programming
Book III: Designing for C#
Book IV: A Tour of Visual Studio
Book V: Windows Development with WPF
Book VI: Web Development with ASP.NET
Book VII: Service-Oriented Development
Icons Used in This Book
About This Book’s Website
Where to Go from Here
Book I: Chapter 1: Creating Your First C# Console Application
Getting a Handle on Computer Languages, C#, and .NET
What’s a program?
What is Visual Studio 2012? What about Visual C#?
Creating Your First Console Application
Creating the source program
Taking it out for a test drive
Making Your Console App Do Something
Reviewing Your Console Application
The program framework
The meat of the program
Introducing the Toolbox Trick
Saving code in the Toolbox
Reusing code from the Toolbox
Book I: Chapter 2: Living with Variability — Declaring Value-Type Variables
Declaring a Variable
What’s an int?
Rules for declaring variables
Variations on a theme: Different types of int
Handling Floating-Point Variables
Declaring a floating-point variable
Converting some more temperatures
Examining some ...