"Hello, World"
Assuming you've decided on a development environment, let's look at your first C# application, the canonical "Hello, World" application. Write the following code into a file, and save it with a filename of HelloWorld.cs: -
class HelloWorld
{
public static void Main()
{
System.Console.WriteLine("Hello, World");
}
}
Let's not worry yet about what each line of code does. At this point, we're just concerned with presenting the first application, getting it compiled, and executing it. Once we've done that-which will validate that you have the correct environment for creating and running C# applications-we'll look into the details of what this code does.