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