Why does the code block below give a compile error of “does not contain a static ‘Main’ method suitable for an entry point”?
namespace MyConApp
{
class Program
{
static void Main(string args)
{
string tmpString;
tmpString = args;
Console.WriteLine("Hello" + tmpString);
}
}
}
See this to understand
Mainmethod signature options.