ILGenerator.MarkSequencePoint(ISymbolDocumentWriter, Int32, Int32, Int32, Int32) 方法
定义
在 Microsoft 中间语言 (MSIL) 流中标记序列点。Marks a sequence point in the Microsoft intermediate language (MSIL) stream.
public:
virtual 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);
abstract member MarkSequencePoint : System.Diagnostics.SymbolStore.ISymbolDocumentWriter * int * int * int * int -> unit
override this.MarkSequencePoint : System.Diagnostics.SymbolStore.ISymbolDocumentWriter * int * int * int * int -> unit
Public Overridable Sub MarkSequencePoint (document As ISymbolDocumentWriter, startLine As Integer, startColumn As Integer, endLine As Integer, endColumn As Integer)
参数
- 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.
例外
startLine 或 endLine 为 <= 0。startLine or endLine is <= 0.
此 ILGenerator 属于某个 DynamicMethod。This ILGenerator belongs to a DynamicMethod.
注解
行号从1开始编制索引。Line numbers are indexed from 1. 列从0编制索引。Columns are indexed from 0.
符号信息对于每个源行通常至少包含一个 MSIL 偏移量。The symbolic information normally includes at least one MSIL offset for each source line. 当实时 (JIT) 编译器要编译方法时,它会请求分析服务提供应保留的 MSIL 偏移量列表。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. 这些 MSIL 偏移量称为 序列点。These MSIL offsets are called sequence points.
如果当前与 ILGenerator 某个对象相关联 DynamicMethod ,则它不支持符号信息。If the current ILGenerator is associated with a DynamicMethod object, it does not support symbolic information.