How to overload the Main() method in C#
Program.cs
using System;
namespace GoDarda
{
    class Program
    {
        public static void Main(string s)
        {
            Console.WriteLine("Welcome to " + s);
        }
        public static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");
            Main("GoDarda");
        }
    }
}
Output
godarda@gd:~/csharp$ dotnet run
Hello, World!
Welcome to GoDarda
godarda@gd:~/csharp$ 
Comments and Reactions