NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ILGenerator.MarkSequencePoint

Marks a sequence point in the instruction stream.

[Visual Basic]
Overridable Public 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
[To be supplied.]
startColumn
[To be supplied.]
endLine
[To be supplied.]
endColumn
[To be supplied.]

Exceptions

Exception Type Condition
ArgumentException if 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 IL offset for each source line. When the JIT compiler is about to compile a method, it asks the Profiling Services for a list of IL offsets that should be preserved. These IL offsets are called sequence points.

See Also

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