EndScope Method

ILGenerator.EndScope Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Ends a lexical scope.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public virtual void EndScope()

ExceptionCondition
NotSupportedException

This ILGenerator belongs to a DynamicMethod.

This method is used to emit symbolic information. It is used with BeginScope.

If the current ILGenerator is associated with a DynamicMethod object, it does not support symbolic information.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft