c# - Compiler error - exe does not contain a static 'Main' method suitable for an entry point -
this question has answer here:
i have compiler error shown in image , not able resolve - "consults.exe not contain static 'main' method suitable entry point". program contain main method.
public static int main(string[] args) { program s = new program(); s.name(); string d = console.readline(); return 0; }
in console application, compiler requires main() function void , not return such value.
Comments
Post a Comment