MtRock.cs Paradise 16

Qingshuan’s Programming Blog

[C#/.NET] Return in try block & Play in “finally”

Posted by linuxprogram on February 21, 2008

Code:

 

Output:

Initialized

Output i in
finally

j = Assignment in
return statement in
try / i = Assignment in Finally

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>