Skip to content

IlInstruction

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

A single decoded IL (Intermediate Language) instruction.

public sealed record IlInstruction : IEquatable<IlInstruction>

ObjectIlInstruction

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)

The 1-based rendered line number in formatted disassembly, or null.

Returns: Nullable<Int32>

public int? DisplayLine { get; init; }

Whether the sequence point document has embedded source.

Returns: Boolean

public bool HasEmbeddedSource { get; init; }

The active PDB local variable name for LocalSlot, or null.

Returns: String

public string? LocalName { get; init; }

The local variable slot referenced by this instruction, or null.

Returns: Nullable<Int32>

public int? LocalSlot { get; init; }

The raw metadata token for token-bearing operands (methods, fields, types), or null.

Returns: Nullable<Int32>

public int? MetadataToken { get; init; }

The byte offset of this instruction within the method body.

Returns: Int32

public int Offset { get; init; }

The IL opcode mnemonic (e.g., “ldstr”, “call”, “ret”).

Returns: String

public string OpCode { get; init; }

The decoded operand as a display string, or empty if the opcode takes no operand.

Returns: String

public string Operand { get; init; }

The source document for a sequence point starting at this instruction, or null.

Returns: String

public string? SequenceDocument { get; init; }

The sequence point end column, or null.

Returns: Nullable<Int32>

public int? SequenceEndColumn { get; init; }

The sequence point end line, or null.

Returns: Nullable<Int32>

public int? SequenceEndLine { get; init; }

Whether the sequence point is hidden.

Returns: Boolean

public bool SequenceHidden { get; init; }

The sequence point start column, or null.

Returns: Nullable<Int32>

public int? SequenceStartColumn { get; init; }

The sequence point start line, or null.

Returns: Nullable<Int32>

public int? SequenceStartLine { get; init; }

The Source Link URL resolved for the sequence point document, or null.

Returns: String

public string? SourceLinkUrl { get; init; }