1
可能重複:
Why use try {} finally {} with an empty try block?的C#代碼好奇的一點 - 需要一些解釋
尊敬的女士們先生們和。在逐步瀏覽MS .NET代碼時,我偶然發現了這件作品:
try { } finally
{
// Called in a finally because it needs to run uninterrupted in order to maintain consistency.
queued = IOThreadScheduler.current.ScheduleCallbackHelper(callback, state);
}
有趣的把戲。任何人都可以捐贈一個解釋嗎? 謝謝。