Return 0 Value From C# Entry Point Method Using Parent and Child Programs - Online Free Computer Tutorials.

'Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Saturday, October 13, 2018

Return 0 Value From C# Entry Point Method Using Parent and Child Programs

Hello everyone, as we know that in C# apps (both Console and Win) Entry Point Method refers to the Main() of a program. When the application is started, the Main method is the first method that is invoked. This Main() does have a return type of "int" and much of the time we noticed that the return value for this Main() seems to 0. So let's understand the behind the scenes of this return value. Background In general, our assumption is (after a Google search) a return of 0 in Main() refers to the status code of the application such as, "Exited Successfully," or if it's 1. then it exited with some errors. But, these 0/1 values are user-defined.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to


tutorial,web dev,visual studio,c#,parent-child

No comments:

Post a Comment