I suggest you ...

Allow private main

The .net compiler for real stuff doesn’t require the class `Main()` is in to be public nor `Main()` itself to be public. In fact, there’s no reason to write any access specifier in code since it doesn’t need to be public and is just extra noise, so I normally don’t in my one-off programs. Even [the VS templates for simple console apps](https://gist.github.com/binki/1f8ed17ed87cf4e78d3771d6f77cd0f9) uses `private` (by allowing the default access by omitting the keyword).

Because .net fiddle doesn’t support this, it is impossible to copy/paste simple programs from VS into it to share with others with all the output, etc.

Please make the fiddle support private `Main()` to make writing and sharing fiddles less work.

Thanks!

3 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Nathan Phillip Brink shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base