Sunday, November 14, 2010

Lesson 25 - Main() and Command Line Arguments

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