示例#1
0
文件: Code.cs 项目: REALTOBIZ/mono
		/// <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));
		}
示例#2
0
文件: PERWAPI.cs 项目: nomit007/f4
 /*-------------------- Constructors ---------------------------------*/
 public MethInstr(MethodOp inst, Method m)
     : base((uint)inst)
 {
     meth = m;
     size += 4;
 }
示例#3
0
文件: PERWAPI.cs 项目: nomit007/f4
 /// <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));
 }
示例#4
0
 /// <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));
 }