A SyncLock block behaves like a Try.Finally construction in which the Try block acquires an exclusive lock on lockobject and the Finally block releases it.
英
美
- SyncLock块的操作就像Try.;Finally结构;其中Try块获取lockobject上的独占锁;而Finally块则释放此锁。