1 instantiation of TypeParameterType
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
604return new TypeParameterType(pSymbol);
60 references to TypeParameterType
Microsoft.CSharp (60)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (2)
445TypeParameterType tpType = (TypeParameterType)pType;
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (2)
128if (type1 is TypeParameterType) 132else if (type2 is TypeParameterType)
Microsoft\CSharp\RuntimeBinder\Semantics\Conversions.cs (4)
95if (typeSrc.IsInterfaceType && typeDst is TypeParameterType || typeSrc is TypeParameterType && typeDst.IsInterfaceType) 260TypeParameterType pParam = (TypeParameterType)pTypeParams[iParam];
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
1020if (typeObj is TypeParameterType || typeObj is AggregateType)
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
1225Debug.Assert(!(_pGroup.ParentType is TypeParameterType));
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (11)
155private bool IsUnfixed(TypeParameterType pParam) 180private void AddLowerBound(TypeParameterType pParam, CType pBound) 192private void AddUpperBound(TypeParameterType pParam, CType pBound) 204private void AddExactBound(TypeParameterType pParam, CType pBound) 802if (pDest is TypeParameterType pTPType) 968if (pDest is TypeParameterType pTPType) 1251TypeParameterType pTypeParam = (TypeParameterType)pTypeParams[arg]; 1327if (pDest is TypeParameterType pTPType) 1558TypeParameterType pTypeParam = (TypeParameterType)pTypeParams[arg];
Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (3)
41typeThru is TypeParameterType || 95Debug.Assert(type is VoidType || type is TypeParameterType); 127typeThru 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)
176Debug.Assert(!(pSource is TypeParameterType)); 392TypeParameterType pParam = (TypeParameterType)pTypeParams[iParam]; 421Debug.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)
152TypeParameterType var = (TypeParameterType)typeVars[i]; 166private static bool CheckSingleConstraint(Symbol symErr, TypeParameterType var, CType arg, TypeArray typeArgsCls, TypeArray typeArgsMeth, CheckConstraintsFlags flags) 339Debug.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; 303TypeParameterSymbol tvs = ((TypeParameterType)type).Symbol; 441TypeParameterSymbol tvs = ((TypeParameterType)typeSrc).Symbol; 554int ivar = ((TypeParameterType)type).IndexInTotalParameters; 598public static TypeParameterType GetStdMethTypeVar(int iv) => s_stvcMethod.GetTypeVarSym(iv, true); 601public static TypeParameterType GetTypeParameter(TypeParameterSymbol pSymbol) 632Debug.Assert(!(typeSrc is VoidType) && !(typeSrc is TypeParameterType)); 722if (!typeArg.IsReferenceType || !((TypeParameterType)typeParams[i]).Covariant)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (10)
322((TypeParameterType)ctypes[i]).Symbol.SetBounds(TypeArray.Allocate(GetCTypeArrayFromTypes(t.GetGenericParameterConstraints()))); 378if (((TypeParameterType)ctype).OwningSymbol == agg) 394private static TypeParameterType LoadClassTypeParameter(AggregateSymbol parent, Type t) 509private static TypeParameterType LoadMethodTypeParameter(MethodSymbol parent, Type t) 515TypeParameterType type = parSym.GetTypeParameterType(); 529private static TypeParameterType AddTypeParameterToSymbolTable( 581TypeParameterType typeParamType = TypeManager.GetTypeParameter(typeParam); 659private static TypeParameterType ProcessMethodTypeParameter(MethodInfo methinfo, Type t, AggregateSymbol parent) 961if (agg.GetTypeVars()[i] is TypeParameterType typeVar) 1812if (t is TypeParameterType paramType)