Method EnterScope
EnterScope()
Starts a new scope
Declaration
public IDisposable EnterScope()
Returns
public IDisposable EnterScope()
IDisposable | IDisposable to enable automatic restore of the scope in RAII style patterns |
Remarks
A new scope is pushed on the stack and remains active until the Dispose() method of the return is called. Normally, code generation does this with a language provided means of ensuring the Dispose method is called even when an exception occurs. (i.e. C# 'using' or try/finally)