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

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.
public IlInstruction(int Offset, string OpCode, string Operand)

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; }