static void Main(string[] args)
{
}
If you know your programme will not take any string arguments, would it
make any difference at all if you removed the string arguments from the
code? And had this instead: -
static void Main()
{
}
I've checked and it compiles, but both versions compile as the same
size.
So i'm curious why they are both the same size.
Does the compiler check to see if the string arguments are actually
used in the main method body? And if they are not it removes them from
the method signature prior to compilation?
Thanks,
Gary.