Basic Hello World program written in C#

No Comments

Testing syntax highlighting with WP-Syntax 🙂
Very simple and more or less the standard template for console applications.

/en-us/dotnet/csharp/programming-guide/inside-a-program/hello-world-your-first-program
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// A Hello World! program in C#.
using System;
namespace HelloWorld
{
    class Hello 
    {
        static void Main() 
        {
            Console.WriteLine("Hello World!");
 
            // Keep the console window open in debug mode.
            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
    }
}
Categories: .Net, C#