IT Community - Software Programming, Web Development and Technical Support

Is the finally occurs when called the goto or return?

This is a discussion on Is the finally occurs when called the goto or return? within the C# Programming forums, part of the Software Development category; Hi all, If I write a goto or a return statement in try and catch block will the finally block ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-29-2007, 04:52 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Question Is the finally occurs when called the goto or return?

Hi all,

If I write a goto or a return statement in try and catch block will the finally block execute ?
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-31-2007, 03:11 AM
leoraja8 leoraja8 is offline
D-Web Sr.Programmer
 
Join Date: May 2007
Posts: 194
leoraja8 is on a distinguished road
Smile Re: Is the finally occurs when called the goto or return?

The code in then finally always run even if there are statements like goto or a return statements.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
gOS download...finally! kmcgra Technology BUZZzzzzz 0 11-17-2007 09:22 AM
finally clause of a try-catch-finally statement vigneshgets Java Programming 2 08-16-2007 07:35 AM
goto specific scene nssukumar Flash Actionscript Programming 1 07-24-2007 01:14 AM
If I return out of a try/finally in C#, does the code in the finally-clause run? H2o C# Programming 1 07-22-2007 11:27 PM
Goto the particular frame on Keystroke oxygen Flash Actionscript Programming 1 07-21-2007 02:45 AM


All times are GMT -7. The time now is 11:14 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0