ILGenerator.MarkSequencePoint Method

Definition

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

public void MarkSequencePoint (System.Diagnostics.SymbolStore.ISymbolDocumentWriter document, int startLine, int startColumn, int endLine, int endColumn);
public virtual void MarkSequencePoint (System.Diagnostics.SymbolStore.ISymbolDocumentWriter document, int startLine, int startColumn, int endLine, int endColumn);

Parameters

document
ISymbolDocumentWriter

The document for which the sequence point is being defined.

startLine
Int32

The line where the sequence point begins.

startColumn
Int32

The column in the line where the sequence point begins.

endLine
Int32

The line where the sequence point ends.

endColumn
Int32

The column in the line where the sequence point ends.

Exceptions

startLine or endLine is <= 0.

document is null.

document is not valid.

Remarks

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

The symbolic information normally includes at least one 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.

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

Applies to

Product Versions
.NET 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1