Class Instruction
Represents a Bytecode instruction by an operator name and its arguments.
public class Instruction : IEquatable<Instruction>
- Inheritance
-
Instruction
- Implements
- Inherited Members
Constructors
Instruction(string, params dynamic?[])
Initializes a new instance of the Instruction class.
public Instruction(string operatorName, params dynamic?[] arguments)
Parameters
operatorName
stringThe name of the operator.
arguments
dynamic[]The arguments.
Properties
Arguments
Gets the arguments.
public dynamic?[] Arguments { get; }
Property Value
- dynamic[]
OperatorName
Gets the name of the operator.
public string OperatorName { get; }
Property Value
Methods
Equals(Instruction?)
public bool Equals(Instruction? other)
Parameters
other
Instruction
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
String representation of the Instruction.
public override string ToString()