Single-line comment at the end of a line of code in C#

C# Programming Language / Overview of C# Language

326

Program:

using System;

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

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.