public static void Emit(this SRE::ILGenerator gen, OpCodeEx opcode, Type cls) { if (gen == null) throw new ArgumentNullException("gen"); if (opcode == OpCodes.Unbox_Opt) gen.Emit_Unbox(cls); else if (opcode == OpCodes.Box_Opt) gen.Emit_Box(cls); }
public static void Emit(this SRE::ILGenerator gen, OpCodeEx opcode, int arg) { if (gen == null) throw new ArgumentNullException("gen"); if (opcode == OpCodes.Ldloc_Opt) gen.Emit_Ldloc(arg); else if (opcode == OpCodes.Ldloca_Opt) gen.Emit_Ldloca(arg); else if (opcode == OpCodes.Stloc_Opt) gen.Emit_Stloc(arg); else if (opcode == OpCodes.Ldc_I4_Opt) gen.Emit_Ldc_I4(arg); else if (opcode == OpCodes.Ldarg_Opt) gen.Emit_Ldarg(arg); }