src/sys/dotnet/perwapi/PERWAPI.cs
/// <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>
Add an instruction with a type parameter
Add an instruction with a type parameter
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));
        }
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 ) ) ; }
Add an instruction with a type parameter
Add an instruction with a type parameter
inst
TypeOp
the CIL instruction
the CIL instruction
aType
Type
the type argument for the CIL instruction
the type argument for the CIL instruction