1 instantiation of TypeParameterType
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
579return new TypeParameterType(pSymbol);
60 references to TypeParameterType
Microsoft.CSharp (60)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (2)
433TypeParameterType tpType = (TypeParameterType)pType;
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (2)
127if (type1 is TypeParameterType) 131else if (type2 is TypeParameterType)
Microsoft\CSharp\RuntimeBinder\Semantics\Conversions.cs (4)
93if (typeSrc.IsInterfaceType && typeDst is TypeParameterType || typeSrc is TypeParameterType && typeDst.IsInterfaceType) 256TypeParameterType pParam = (TypeParameterType)pTypeParams[iParam];
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
997if (typeObj is TypeParameterType || typeObj is AggregateType)
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
1224Debug.Assert(!(_pGroup.ParentType is TypeParameterType));
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (11)
154private bool IsUnfixed(TypeParameterType pParam) 179private void AddLowerBound(TypeParameterType pParam, CType pBound) 191private void AddUpperBound(TypeParameterType pParam, CType pBound) 203private void AddExactBound(TypeParameterType pParam, CType pBound) 801if (pDest is TypeParameterType pTPType) 967if (pDest is TypeParameterType pTPType) 1250TypeParameterType pTypeParam = (TypeParameterType)pTypeParams[arg]; 1326if (pDest is TypeParameterType pTPType) 1557TypeParameterType pTypeParam = (TypeParameterType)pTypeParams[arg];
Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (3)
39typeThru is TypeParameterType || 92Debug.Assert(type is VoidType || type is TypeParameterType); 123typeThru is TypeParameterType ||
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs (3)
44TypeParameterType var = (TypeParameterType)typeVars[ivar]; 75Params[0] is TypeParameterType &&
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolLoader.cs (4)
167Debug.Assert(!(pSource is TypeParameterType)); 379TypeParameterType pParam = (TypeParameterType)pTypeParams[iParam]; 407Debug.Assert(!(pSource is TypeParameterType));
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\TypeParameterSymbol.cs (3)
13private TypeParameterType _pTypeParameterType; 24public void SetTypeParameterType(TypeParameterType pType) 29public TypeParameterType GetTypeParameterType()
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (4)
149TypeParameterType var = (TypeParameterType)typeVars[i]; 162private static bool CheckSingleConstraint(Symbol symErr, TypeParameterType var, CType arg, TypeArray typeArgsCls, TypeArray typeArgsMeth, CheckConstraintsFlags flags) 334Debug.Assert(typeBnd is AggregateType || typeBnd is TypeParameterType || typeBnd is ArrayType);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
322if (typeArg is TypeParameterType typeParamArg && typeParamArg.Symbol.name == null)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (11)
25private readonly List<TypeParameterType> prgptvs; 29prgptvs = new List<TypeParameterType>(); 43public TypeParameterType GetTypeVarSym(int iv, bool fMeth) 47TypeParameterType tpt; 289TypeParameterSymbol tvs = ((TypeParameterType)type).Symbol; 426TypeParameterSymbol tvs = ((TypeParameterType)typeSrc).Symbol; 539int ivar = ((TypeParameterType)type).IndexInTotalParameters; 573public static TypeParameterType GetStdMethTypeVar(int iv) => s_stvcMethod.GetTypeVarSym(iv, true); 576public static TypeParameterType GetTypeParameter(TypeParameterSymbol pSymbol) 606Debug.Assert(!(typeSrc is VoidType) && !(typeSrc is TypeParameterType)); 695if (!typeArg.IsReferenceType || !((TypeParameterType)typeParams[i]).Covariant)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (10)
315((TypeParameterType)ctypes[i]).Symbol.SetBounds(TypeArray.Allocate(GetCTypeArrayFromTypes(t.GetGenericParameterConstraints()))); 370if (((TypeParameterType)ctype).OwningSymbol == agg) 385private static TypeParameterType LoadClassTypeParameter(AggregateSymbol parent, Type t) 499private static TypeParameterType LoadMethodTypeParameter(MethodSymbol parent, Type t) 505TypeParameterType type = parSym.GetTypeParameterType(); 518private static TypeParameterType AddTypeParameterToSymbolTable( 570TypeParameterType typeParamType = TypeManager.GetTypeParameter(typeParam); 646private static TypeParameterType ProcessMethodTypeParameter(MethodInfo methinfo, Type t, AggregateSymbol parent) 941if (agg.GetTypeVars()[i] is TypeParameterType typeVar) 1777if (t is TypeParameterType paramType)