Mosa.Compiler.Framework.InstructionNode.SetResult C# (CSharp) Method

SetResult() public method

Sets the result by index.
public SetResult ( int index, Operand operand ) : void
index int The index.
operand Operand The operand.
return void
        public void SetResult(int index, Operand operand)
        {
            switch (index)
            {
                case 0: Result = operand; return;
                case 1: Result2 = operand; return;
                default: throw new IndexOutOfRangeException();
            }
        }