/// <summary> /// Add an instruction with a method parameter /// </summary> /// <param name="inst">the CIL instruction</param> /// <param name="m">the method parameter</param> public void MethInst(MethodOp inst, Method m) { AddToBuffer(new MethInstr((int)inst,m)); }
/*-------------------- Constructors ---------------------------------*/ public MethInstr(MethodOp inst, Method m) : base((uint)inst) { meth = m; size += 4; }
/// <summary> /// Add an instruction with a method parameter /// </summary> /// <param name="inst">the CIL instruction</param> /// <param name="m">the method parameter</param> public void MethInst(MethodOp inst, Method m) { Debug.Assert(m != null); if (m is MethodDef) if (((MethodDef)m).GetScope() != thisMeth.GetScope()) throw new DescriptorException(); AddToBuffer(new MethInstr(inst,m)); }
/// <summary> /// Add an instruction with a method parameter /// </summary> /// <param name="inst">the CIL instruction</param> /// <param name="m">the method parameter</param> public void MethInst(MethodOp inst, Method m) { AddToBuffer(new MethInstr((int)inst, m)); }