Esempio n. 1
0
		/// <summary>
		/// Add an instruction with a type parameter
		/// </summary>
		/// <param name="inst">the CIL instruction</param>
		/// <param name="t">the type argument for the CIL instruction</param>
		public void TypeInst(TypeOp inst, Type aType) 
		{
			AddToBuffer(new TypeInstr((int)inst,aType,metaData));
		}
Esempio n. 2
0
 /// <summary>
 /// Add an instruction with a type parameter
 /// </summary>
 /// <param name="inst">the CIL instruction</param>
 /// <param name="aType">the type argument for the CIL instruction</param>
 public void TypeInst(TypeOp inst, Type aType)
 {
     Debug.Assert(aType != null);
     if (aType is ClassDef) {
         if (((ClassDef)aType).GetScope() != thisMeth.GetScope())
             throw new DescriptorException();
     }
     AddToBuffer(new TypeInstr(inst,aType));
 }
Esempio n. 3
0
 /// <summary>
 /// Add an instruction with a type parameter
 /// </summary>
 /// <param name="inst">the CIL instruction</param>
 /// <param name="t">the type argument for the CIL instruction</param>
 public void TypeInst(TypeOp inst, Type aType)
 {
     AddToBuffer(new TypeInstr((int)inst, aType, metaData));
 }
Esempio n. 4
0
 /*-------------------- Constructors ---------------------------------*/
 public TypeInstr(TypeOp inst, Type aType)
     : base((uint)inst)
 {
     theType = aType;
     size += 4;
 }
Esempio n. 5
0
 public OperationForm(TypeOp type)
 {
     OperationType = type;
     InitializeComponent();
 }