/// <summary> /// Write the specified instruction list into the method builder. There is no need to manage labels or locals they will be created by this method. /// </summary> /// <param name="Instructions">The list of instruction to emit</param> /// <param name="MethodBuilder">The Method builder recieving the instructions</param> static public void EmitMethod(List <Instruction> Instructions, System.Reflection.Emit.MethodBuilder MethodBuilder) { MSIL_emit.emitMethod(Instructions, MethodBuilder.GetILGenerator()); }
/// <summary> /// Write the specified instruction list into the method builder. There is no need to manage labels or locals they will be created by this method. /// </summary> /// <param name="Instructions">The list of instruction to emit</param> /// <param name="ILGenerator">The ILGenerator recieving the instructions</param> static public void EmitMethod(List <Instruction> Instructions, System.Reflection.Emit.ILGenerator ILGenerator) { MSIL_emit.emitMethod(Instructions, ILGenerator); }
/// <summary> /// Emit this instruction into a pre-existing ILGenerator /// </summary> /// <param name="ILGenerator">The target ILGenerator</param> public void Emit(System.Reflection.Emit.ILGenerator ILGenerator) { MSIL_emit.emit(_OpCode, _Data, ILGenerator); }