Export (0) Print
Expand All

ILGenerator.MarkSequencePoint Method

Marks a sequence point in the Microsoft intermediate language (MSIL) stream.

[Visual Basic]
Public Overridable Sub MarkSequencePoint( _
   ByVal document As ISymbolDocumentWriter, _
   ByVal startLine As Integer, _
   ByVal startColumn As Integer, _
   ByVal endLine As Integer, _
   ByVal endColumn As Integer _
)
[C#]
public virtual void MarkSequencePoint(
 ISymbolDocumentWriter document,
 int startLine,
 int startColumn,
 int endLine,
 int endColumn
);
[C++]
public: virtual void MarkSequencePoint(
 ISymbolDocumentWriter* document,
 int startLine,
 int startColumn,
 int endLine,
 int endColumn
);
[JScript]
public function MarkSequencePoint(
   document : ISymbolDocumentWriter,
 startLine : int,
 startColumn : int,
 endLine : int,
 endColumn : int
);

Parameters

document
The document for which the sequence point is being defined.
startLine
The line where the sequence point begins.
startColumn
The column in the line where the sequence point begins.
endLine
The line where the sequence point ends.
endColumn
The column in the line where the sequence point ends.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException startLine or endLine is <= 0.

Remarks

Line numbers are indexed from 1. Columns are indexed from 0.

The symbolic information normally includes at least one Microsoft intermediate language (MSIL) offset for each source line. When the just-in-time (JIT) compiler is about to compile a method, it asks the profiling services for a list of MSIL offsets that should be preserved. These MSIL offsets are called sequence points.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace

Show:
© 2014 Microsoft