Proposal : exit guarded statements #2245
Unanswered
vbcodec
asked this question in
Language Ideas
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Although for the example provided in the OP, a int GetTrackedFileSize(string path)
{
try
{
Console.WriteLine("Entering measuring file size - {0}", path);
return GetFileSize(path);
}
finally
{
Console.WriteLine("Exiting measuring file size - {0}", path);
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Guarded statements allow to execute code when statement is exited.
Example:
than
Beta Was this translation helpful? Give feedback.
All reactions