ILGenerator.BeginScope Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Begins a lexical scope.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| NotSupportedException | This ILGenerator belongs to a DynamicMethod. |
This method is used to emit symbolic information. Local variables declared after BeginScope are scoped until the corresponding EndScope is called.
If the current ILGenerator is associated with a DynamicMethod object, it does not support symbolic information.
Show: