how to declare main in c# code example
Example 1: c# main method
static void Main(string[] args)
{
//...
}
Example 2: static void main(string args) c# meaning
class TestClass
{
static void Main(string[] args)
{
// Display the number of command line arguments.
Console.WriteLine(args.Length);
}
}