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