The Main method is the entry point of your program, where you create objects and invoke other methods. There can only be one entry point in a C# program.
class TestClass
{
static void Main(string[] args)
{
// Display the number of command line arguments:
System.Console.WriteLine(args.Length);
}
}
No comments:
Post a Comment