G
Guest
Jon,
This works great. This issue is resolved.
This works great. This issue is resolved.
Jon Skeet said:It sounds like you should really restructure your code anyway - I can't
think of the last time I really wanted to exit a try block without
exiting either an enclosing loop, or the method etc.
If you *really* want to, you could write:
do
{
try
{
// stuff
break;
}
catch/finally etc
} while (false);
It's pretty ugly though.