Current location - Quotes Website - Personality signature - The signature of c#Main(string) "is wrong and cannot be used as an entry point.
The signature of c#Main(string) "is wrong and cannot be used as an entry point.
The signature of the Main function main () is fixed, and a * * * has the following four forms.

No parameter returns the value of void static void Main ().

2. There is no parameter with the return value of int static int Main ().

3. The return value with parameters is void? Static void Main(string[] args)

4. The return value with parameters is int? Static int Main(string[] args)

If your code does not conform to one of the above four forms, the program will not find the entrance and run the program.