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