Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specification


10 Basic concepts
10.2 Application termination
Paragraph 11 Application termination returns control to the execution environment.
Paragraph 21 If the return type of the application's entry point method is int, the value returned serves as the application's termination status code. 2 The purpose of this code is to allow communication of success or failure to the execution environment.
Paragraph 31 If the return type of the entry point method is void, reaching the right brace (}) which terminates that method, or executing a return statement that has no expression, results in a termination status code of 0.
Paragraph 41 Prior to an application's termination, destructors for all of its objects that have not yet been garbage collected are called, unless such cleanup has been suppressed (by a call to the library method GC.SuppressFinalize, for example). |
Jagger Software Ltd |
Company # 4070126 |
VAT # 762 5213 42 |

