try
{...
block:
....
}
catch{ ..}
GOTO block
...
....
finally{...}
Will goto executes in this case??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It won’t compile because of ‘
GOTO block‘ instead of ‘goto block;‘ and even if it was right it won’t compile because C# specifications states (§8.9.3):Also I found couple specs interesting for me too:
And:
the latter means that if you have
it will call
CloseAll()before actually transferring control to theLabel1and executingMethodB().Makes perfect sense, but I never thought about it…