xxxxxxxxxx
class Program
{
public static void Main(string[] args)
{
}
}
//Copy this in case you have nothing in your Program.cs
//about that -> https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/program-structure/top-level-statements
xxxxxxxxxx
using System;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
xxxxxxxxxx
static void Main(string[] args)
{
// Do something...
}
static void A()
{
Main(null);
}
xxxxxxxxxx
class John
{
static void Main(string[] args)
{
// Display the number of command line arguments.
Console.WriteLine("Hi Khanyi");
}
}