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)); }
public ParameterDefinition GetParameter(int index) { return(body.GetParameter(index)); }