Single-line comment before a line of code in C#

C# Programming Language / Overview of C# Language

314

Program:

using System;

namespace HelloWorld
{
  class Program
  {
    static void Main(string[] args)
    {
      // This is a comment
      Console.WriteLine("Hello World!");    
     }
  }
}

Output:

Hello World!

Explanation:

None

This Particular section is dedicated to Programs only. If you want learn more about C# Programming Language. Then you can visit below links to get more depth on this subject.