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?)
Section titled “IlInstruction(int, string, 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.
public IlInstruction(int Offset, string OpCode, string Operand, int? MetadataToken = null)Properties
Section titled “Properties”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; }