Esempio n. 1
0
        public Instruction Create(OpCode opcode, byte value)
        {
            if (opcode.OperandType == OperandType.ShortInlineVar)
            {
                return(Instruction.Create(opcode, body.Variables [value]));
            }

            if (opcode.OperandType == OperandType.ShortInlineArg)
            {
                return(Instruction.Create(opcode, body.GetParameter(value)));
            }

            return(Instruction.Create(opcode, value));
        }
Esempio n. 2
0
 public ParameterDefinition GetParameter(int index)
 {
     return(body.GetParameter(index));
 }