How do I create Hello World program?

Category: Introduction, viewed: 3K time(s).

This is our first example on C# programming, we create the classic implementation of HelloWorld using the C# language. If you familiar with object oriented programming you will see some keyword like class, public, or static that commonly used in the OOP language.

Let's meet HelloWorld in C#.

namespace Kodecsharp.Example.Intro
{
    /// <summary>
    /// HelloWorld in C#
    /// </summary>
    class HelloWorld
    {
        public static void Main()
        {
            //
            // Say hello to the world!
            //
            System.Console.WriteLine("Hello World!");
        }
    }
}
Powered by Disqus