C#
Hello, C#C# - Hello, C#
Writing Your First C# Application
Choosing an Editor
Notepad
Visual Studio 6
Visual Studio.NET
Third-Party Editors
What I Used for this Book
"Hello, World"
Using the Command-Line Compiler
Running the Application
Code Walk-Through
One-Stop Programming
Classes and Members
The Main Method
The System.Console.WriteLine Method
Namespaces and the using Directive
Skeleton Code
Something Went Wrong!
Compile-Time Errors
Spelunking with ILDASM
"Hello, World" in MSIL
C# Programming Guidelines
When to Define Your Own Namespaces
Naming Guidelines
Naming Convention Standards
Hungarian Notation
Pascal Casing and Camel Casing
Namespaces
Classes
Methods
Method Arguments
Interfaces
Class Members
Summary
Before we get to the heart of our subject?Part II, "C# Class Fundamentals," and Part III, "Writing Code"?I thought it would be a good idea to have a "getting started" tutorial. In this tutorial, I'll take you on a quick tour of the development process for a simple C# application. First, I'll cover the advantages and disadvantages of the different editors you can use to write in C#. Once you've selected an editor, we'll write the canonical "Hello, World" example application to get to know the basic syntax and structure of writing C# applications. You'll see that as in most languages, this syntax is formulaic and you can use this application as a template to write most basic C# applications. You'll then learn how to compile using the command-line compiler, and you'll learn how to run your new application.