/// <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)); }
/// <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)); }
/// <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)); }
/*-------------------- Constructors ---------------------------------*/ public TypeInstr(TypeOp inst, Type aType) : base((uint)inst) { theType = aType; size += 4; }
public OperationForm(TypeOp type) { OperationType = type; InitializeComponent(); }