GetILOffset Method
Collapse the table of content
Expand the table of content

StackFrame.GetILOffset Method

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

Gets the offset from the start of the Microsoft intermediate language (MSIL) code for the method that is executing. This offset might be an approximation depending on whether the just-in-time (JIT) compiler is generating debugging code. The generation of this debugging information is controlled by the DebuggableAttribute attribute.

Namespace:  System.Diagnostics
Assembly:  mscorlib (in mscorlib.dll)

public virtual int GetILOffset()

Return Value

Type: System.Int32
The offset from the start of the MSIL code for the method that is executing.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft