{// Statement which can cause an exception.}catch(Type x){// Statements for handling the exception}finally{//Any cleanup code} If any exception occurs inside the try block, the control transfers to the appropriate catch block and later to the finally block. But in C#, both catch and finally blocks are optional. The try block can exist either with one or more catch blocks or a finally block or with both catch and finally blocks. If there is no exception occurred insid
continue >>
Author:
Time:
Friday, February 8th, 2008 at 12:53 pm
Category:
Comments:
You can leave a response, or trackback from your own site.
RSS:
You can follow any responses to this entry through the RSS 2.0 feed.
Navigation: