27 references to IsGenericTypeDefinition
System.Private.CoreLib (27)
Internal\Runtime\Augments\RuntimeAugments.cs (2)
421
if (eeType->
IsGenericTypeDefinition
|| eeType->IsPointer || eeType->IsByRef || eeType->IsFunctionPointer)
569
return typeHandle.ToMethodTable()->
IsGenericTypeDefinition
;
Internal\Runtime\MethodTable.Runtime.cs (1)
40
return IsPrimitive && (
IsGenericTypeDefinition
|| NonArrayBaseType != MethodTable.Of<ValueType>());
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\MethodTable.cs (6)
221
Debug.Assert(
IsGenericTypeDefinition
);
546
Debug.Assert(IsGeneric ||
IsGenericTypeDefinition
);
894
Debug.Assert(IsCanonical ||
IsGenericTypeDefinition
, "we expect type definitions here");
895
Debug.Assert(!
IsGenericTypeDefinition
|| _relatedType._pBaseType == null, "callers assume this would be null for a generic definition");
1213
Debug.Assert(IsGeneric || (
IsGenericTypeDefinition
&& HasGenericVariance));
1216
if (IsGeneric || (
IsGenericTypeDefinition
&& HasGenericVariance))
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\RuntimeExports.cs (1)
29
bool isValid = !pEEType->
IsGenericTypeDefinition
&&
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\TypeCast.cs (4)
484
Debug.Assert(pBaseType->IsCanonical || pBaseType->
IsGenericTypeDefinition
, "unexpected MethodTable");
485
Debug.Assert(pDerivedType->IsCanonical || pDerivedType->
IsGenericTypeDefinition
, "unexpected MethodTable");
992
if (pTargetType->
IsGenericTypeDefinition
|| pSourceType->
IsGenericTypeDefinition
)
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (2)
383
if (mt->ElementType == EETypeElementType.Void || mt->
IsGenericTypeDefinition
|| mt->IsByRef || mt->IsPointer || mt->IsFunctionPointer)
416
|| mt->
IsGenericTypeDefinition
)
System\Runtime\InteropServices\Marshal.NativeAot.cs (1)
47
if (t.TypeHandle.ToMethodTable()->
IsGenericTypeDefinition
)
System\RuntimeType.NativeAot.cs (10)
132
if (!pEEType->
IsGenericTypeDefinition
)
347
if (!pEEType->
IsGenericTypeDefinition
)
361
if (pEEType != null && !pEEType->
IsGenericTypeDefinition
)
384
return (pEEType->IsCanonical && !pEEType->IsGeneric) || pEEType->
IsGenericTypeDefinition
;
395
return pEEType->IsGeneric || pEEType->
IsGenericTypeDefinition
;
406
return pEEType->
IsGenericTypeDefinition
;
428
pEEType->
IsGenericTypeDefinition
? this :
503
return pEEType->
IsGenericTypeDefinition
;
631
if (!fromRuntimeType._pUnderlyingEEType->
IsGenericTypeDefinition
|| fromRuntimeType._pUnderlyingEEType->IsPointer)
642
if (pEEType == null || pEEType->
IsGenericTypeDefinition
)