This would be question from c# beginner.
When I create console application I get Main method with parameter args as array string.
I do not understand how this method is called by system and how args are passed to the Main method. Maybe someone could explain? Is Main method are overridden of some kind of console class?
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
}
}
}
The Main method is the Entry point of your application. If you checkout via
ildasmthenThis is what helps in calling the method
The arguments are passed as say
C:\AppName arg1 arg2 arg3