public static void Emit(this ILProcessor ilp, OpCode opCode, CecilLabel label) { if (!label.IsSameILProcessor(ilp)) { throw new NotSupportedException(); } label.Emit(opCode); }
public static void MarkLabel(this ILProcessor ilp, CecilLabel label) { if (!label.IsSameILProcessor(ilp)) { throw new NotSupportedException(); } label.Mark(); }