Return type of Main() method in C#
Why Main() method in C# can only return either a int value or void ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Sep 24, 2013, 12:47 PM
If the return type is void, then an exit code of 0 is returned unless there's an exception.
echo %ERRORLEVEL%