Current location - Quotes Website - Signature design - C# Oh, my God, what happened to this code? ! 1, not all codes have return values? 2. The signature of the main function is wrong and cannot be used as the entry point.
C# Oh, my God, what happened to this code? ! 1, not all codes have return values? 2. The signature of the main function is wrong and cannot be used as the entry point.
Console program, the entry must be public static void, but your Main method is public static string, so VS can't find your standard entry. And your Main method is written to return a string, but there is no return in the content.