0
Can I declare methods or classes in the main method.
I'm guessing this is why my compiler is rejecting the 'void's and 'args' in the main method. Any ideas plead?
1 Odpowiedź
+ 3
If Main method is static, then the methods you're trying to call must also be static. Example:
static Main(string args)
{
myMethod();
}
static void myMethod()
{
//insert stuff here....
}