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