Just a passing thought....
.NET (Core and Framework)
3
Posts
2
Posters
0
Views
1
Watching
-
What will happen if you put a
public static void Main()
inside a class and why would you do it ?
Always Keep Smiling. Yours Pankaj Nikam
-
What will happen if you put a
public static void Main()
inside a class and why would you do it ?
Always Keep Smiling. Yours Pankaj Nikam
-
It's an entry point. This is where program execution starts. If there are multiple Main()s, then there'll be a conflict, and the program can't be run until you either rename the method or the removal of 'static'
Hmm... interesting... :)
Always Keep Smiling. Yours Pankaj Nikam