IlInstruction
Namespace: Dotsider.Core.Analysis.Models
Assembly: Dotsider.Core.dll
A single decoded IL (Intermediate Language) instruction.
public sealed record IlInstruction : IEquatable<IlInstruction>Inheritance
Section titled “Inheritance”Object → IlInstruction
Implements
Section titled “Implements”Constructors
Section titled “Constructors”IlInstruction(int, string, string, int?, string?, int?, int?, int?, int?, bool, string?, bool, int?, string?, int?)
Section titled “IlInstruction(int, string, string, int?, string?, int?, int?, int?, int?, bool, string?, bool, int?, string?, int?)”A single decoded IL (Intermediate Language) instruction.
Parameters:
Offset(Int32): The byte offset of this instruction within the method body.OpCode(String): The IL opcode mnemonic (e.g., “ldstr”, “call”, “ret”).Operand(String): The decoded operand as a display string, or empty if the opcode takes no operand.MetadataToken(Nullable<Int32>): The raw metadata token for token-bearing operands (methods, fields, types), or null.SequenceDocument(String): The source document for a sequence point starting at this instruction, or null.SequenceStartLine(Nullable<Int32>): The sequence point start line, or null.SequenceStartColumn(Nullable<Int32>): The sequence point start column, or null.SequenceEndLine(Nullable<Int32>): The sequence point end line, or null.SequenceEndColumn(Nullable<Int32>): The sequence point end column, or null.SequenceHidden(Boolean): Whether the sequence point is hidden.SourceLinkUrl(String): The Source Link URL resolved for the sequence point document, or null.HasEmbeddedSource(Boolean): Whether the sequence point document has embedded source.LocalSlot(Nullable<Int32>): The local variable slot referenced by this instruction, or null.LocalName(String): The active PDB local variable name for LocalSlot, or null.DisplayLine(Nullable<Int32>): The 1-based rendered line number in formatted disassembly, or null.
public IlInstruction(int Offset, string OpCode, string Operand, int? MetadataToken = null, string? SequenceDocument = null, int? SequenceStartLine = null, int? SequenceStartColumn = null, int? SequenceEndLine = null, int? SequenceEndColumn = null, bool SequenceHidden = false, string? SourceLinkUrl = null, bool HasEmbeddedSource = false, int? LocalSlot = null, string? LocalName = null, int? DisplayLine = null)Properties
Section titled “Properties”DisplayLine
Section titled “DisplayLine”The 1-based rendered line number in formatted disassembly, or null.
Returns: Nullable<Int32>
public int? DisplayLine { get; init; }HasEmbeddedSource
Section titled “HasEmbeddedSource”Whether the sequence point document has embedded source.
Returns: Boolean
public bool HasEmbeddedSource { get; init; }LocalName
Section titled “LocalName”The active PDB local variable name for LocalSlot, or null.
Returns: String
public string? LocalName { get; init; }LocalSlot
Section titled “LocalSlot”The local variable slot referenced by this instruction, or null.
Returns: Nullable<Int32>
public int? LocalSlot { get; init; }MetadataToken
Section titled “MetadataToken”The raw metadata token for token-bearing operands (methods, fields, types), or null.
Returns: Nullable<Int32>
public int? MetadataToken { get; init; }Offset
Section titled “Offset”The byte offset of this instruction within the method body.
Returns: Int32
public int Offset { get; init; }OpCode
Section titled “OpCode”The IL opcode mnemonic (e.g., “ldstr”, “call”, “ret”).
Returns: String
public string OpCode { get; init; }Operand
Section titled “Operand”The decoded operand as a display string, or empty if the opcode takes no operand.
Returns: String
public string Operand { get; init; }SequenceDocument
Section titled “SequenceDocument”The source document for a sequence point starting at this instruction, or null.
Returns: String
public string? SequenceDocument { get; init; }SequenceEndColumn
Section titled “SequenceEndColumn”The sequence point end column, or null.
Returns: Nullable<Int32>
public int? SequenceEndColumn { get; init; }SequenceEndLine
Section titled “SequenceEndLine”The sequence point end line, or null.
Returns: Nullable<Int32>
public int? SequenceEndLine { get; init; }SequenceHidden
Section titled “SequenceHidden”Whether the sequence point is hidden.
Returns: Boolean
public bool SequenceHidden { get; init; }SequenceStartColumn
Section titled “SequenceStartColumn”The sequence point start column, or null.
Returns: Nullable<Int32>
public int? SequenceStartColumn { get; init; }SequenceStartLine
Section titled “SequenceStartLine”The sequence point start line, or null.
Returns: Nullable<Int32>
public int? SequenceStartLine { get; init; }SourceLinkUrl
Section titled “SourceLinkUrl”The Source Link URL resolved for the sequence point document, or null.
Returns: String
public string? SourceLinkUrl { get; init; }