5 overrides of IsGenericTypeDefinition
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
231public override bool IsGenericTypeDefinition => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
34public abstract override bool IsGenericTypeDefinition { get; }
System\RuntimeType.NativeAot.cs (1)
400public override bool IsGenericTypeDefinition
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
92public override bool IsGenericTypeDefinition
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
38public abstract override bool IsGenericTypeDefinition { get; }
114 references to IsGenericTypeDefinition
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
3863if (type.IsGenericType && !type.IsGenericTypeDefinition)
dotnet-svcutil-lib (10)
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (1)
125else if (!info.IsGenericTypeDefinition)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (1)
479if (type.GetTypeInfo().IsGenericType && !type.GetTypeInfo().IsGenericTypeDefinition)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
541&& !info.IsGenericTypeDefinition && !info.ContainsGenericParameters)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (1)
1154bool isOpenGeneric = knownInterfaceType.GetTypeInfo().IsGenericTypeDefinition
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (4)
1453if (type.GetTypeInfo().IsGenericType && !type.GetTypeInfo().IsGenericTypeDefinition) 1593if (type.GetTypeInfo().IsGenericType && !type.GetTypeInfo().IsGenericTypeDefinition) 1689bool isTypeOpenGeneric = type.GetTypeInfo().IsGenericTypeDefinition; 1813return !type.GetTypeInfo().IsGenericTypeDefinition && type.GetTypeInfo().ContainsGenericParameters ? String.Format(CultureInfo.InvariantCulture, "{0}.{1}", type.Namespace, type.Name) : type.FullName;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (2)
467containsGenericType = conflictingType.GetTypeInfo().IsGenericTypeDefinition; 504(Globals.TypeOfIXmlSerializable.IsAssignableFrom(type) && !typeInfo.IsGenericTypeDefinition) ||
Microsoft.AspNetCore.Components.Endpoints (5)
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (2)
41if (!type.IsInterface && !type.IsAbstract && !type.IsGenericTypeDefinition) 128if (!type.IsInterface && !type.IsAbstract && !type.IsGenericTypeDefinition)
FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (2)
41if (!type.IsAbstract && !type.IsGenericTypeDefinition) 107if (!type.IsAbstract && !type.IsGenericTypeDefinition)
FormMapping\Metadata\FormDataMetadataFactory.cs (1)
64if (type.IsGenericTypeDefinition)
Microsoft.AspNetCore.Http.Extensions (5)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (2)
41if (!type.IsInterface && !type.IsAbstract && !type.IsGenericTypeDefinition) 128if (!type.IsInterface && !type.IsAbstract && !type.IsGenericTypeDefinition)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (2)
41if (!type.IsAbstract && !type.IsGenericTypeDefinition) 107if (!type.IsAbstract && !type.IsGenericTypeDefinition)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
64if (type.IsGenericTypeDefinition)
Microsoft.AspNetCore.Identity.UI (1)
IdentityPageModelConvention.cs (1)
26if (template.IsAbstract || !template.IsGenericTypeDefinition)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\AssemblySymbol.cs (1)
818Debug.Assert(currentTypeInfo.IsGenericTypeDefinition || !currentTypeInfo.IsGenericType);
Microsoft.CodeAnalysis.ExternalAccess.Extensions (1)
Internal\ExtensionMessageHandlerFactory.cs (1)
55!interfaceType.IsGenericTypeDefinition &&
Microsoft.CodeAnalysis.Scripting (3)
Hosting\ObjectFormatter\CommonTypeNameFormatter.cs (2)
238Type[] genericArguments = typeInfo.IsGenericTypeDefinition ? typeInfo.GenericTypeParameters : typeInfo.GenericTypeArguments; 288int currentArgCount = (typeInfo.IsGenericTypeDefinition ? typeInfo.GenericTypeParameters.Length : typeInfo.GenericTypeArguments.Length) - genericArgIndex;
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
116if (proxyType.GetTypeInfo().IsGenericTypeDefinition)
Microsoft.Extensions.AI.Abstractions (3)
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\NullabilityInfoContext\NullabilityInfoContext.cs (3)
430if ((type != null) && type.IsGenericType && !type.IsGenericTypeDefinition) 520Type contextTypeDefinition = context.IsGenericType && !context.IsGenericTypeDefinition ? context.GetGenericTypeDefinition() : context; 533|| (baseType.IsGenericTypeDefinition ? baseType : baseType.GetGenericTypeDefinition()) != genericParameter.DeclaringType)
Microsoft.Extensions.DependencyInjection (4)
ServiceLookup\CallSiteFactory.cs (4)
40if (serviceType.IsGenericTypeDefinition) 44if (implementationType == null || !implementationType.IsGenericTypeDefinition) 74if (implementationType.IsGenericTypeDefinition || 856if (serviceType.IsGenericTypeDefinition)
Microsoft.Extensions.DependencyInjection.Abstractions (2)
EmptyServiceProvider.cs (2)
60return !serviceType.IsGenericTypeDefinition && (IsEnumerable(serviceType) || IsBuiltInService(serviceType)); 68if (serviceType.IsGenericTypeDefinition)
Microsoft.Extensions.VectorData.ConformanceTests (2)
TestSuiteImplementationTests.cs (2)
43=> (type.IsPublic || type.IsNestedPublic) && interfaceOrBaseType.IsGenericTypeDefinition 51if (!typeInfo.IsGenericTypeDefinition)
Microsoft.ML.Core (1)
Utilities\PlatformUtils.cs (1)
37return typeInfo.IsGenericTypeDefinition
Microsoft.Private.Windows.Core (1)
System\TypeExtensions.cs (1)
233type.IsGenericType && !type.IsGenericTypeDefinition && type.GetGenericTypeDefinition() == typeof(Nullable<>)
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (1)
2636Not TargetType.IsGenericTypeDefinition AndAlso
Microsoft\VisualBasic\CompilerServices\Symbols.vb (1)
486Return type.IsGenericType AndAlso (Not type.IsGenericTypeDefinition)
Mono.Cecil (2)
Mono.Cecil\Import.cs (2)
212 return type.IsGenericType && type.IsGenericTypeDefinition && import_kind == ImportGenericKind.Open; 299 return type.IsGenericType && !type.IsGenericTypeDefinition;
PresentationBuildTasks (3)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (3)
2290Debug.Assert(genericName.Length > 0 || t.IsGenericTypeDefinition); 2362if (refType == null || !refType.IsGenericType || !refType.IsGenericTypeDefinition || typeArgsList == null) 2447Debug.Assert(_typeArgsList == null || (baseClass.IsGenericType && baseClass.IsGenericTypeDefinition));
System.CodeDom (1)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
105else if (!type.IsGenericTypeDefinition)
System.ComponentModel.Composition (4)
Microsoft\Internal\ReflectionServices.cs (2)
86!targetOpenInterfaceType.IsGenericTypeDefinition || 87instanceType.IsGenericTypeDefinition)
System\ComponentModel\Composition\ContractNameServices.cs (1)
121WriteGenericType(typeName, type, type.IsGenericTypeDefinition, genericTypeArguments, formatGenericName);
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
105if (!baseType.IsGenericTypeDefinition)
System.Composition.Convention (3)
System\Composition\Convention\ConventionBuilder.cs (2)
369if (ti.IsGenericTypeDefinition || bti.IsGenericTypeDefinition)
System\Composition\Convention\ImportConventionBuilder.cs (1)
176(typeInfo.IsGenericTypeDefinition && s_supportedImportManyTypes.Contains(typeInfo.AsType())) ||
System.Composition.TypedParts (3)
System\Composition\TypedParts\Discovery\TypeInspector.cs (3)
166if (partType.IsGenericTypeDefinition) 180if (!contractType.IsGenericTypeDefinition) 226if (partType.IsGenericTypeDefinition)
System.Data.Common (1)
System\Data\TypeLimiter.cs (1)
292if (type.IsGenericType && !type.IsGenericTypeDefinition && type.GetGenericTypeDefinition() == typeof(List<>))
System.Linq.Expressions (1)
System\Dynamic\Utils\TypeUtils.cs (1)
957throw type.IsGenericTypeDefinition
System.Private.CoreLib (24)
Internal\Reflection\Extensions\NonPortable\CustomAttributeSearcher.cs (1)
59else if (optionalAttributeTypeFilter.IsGenericTypeDefinition)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Nullable.cs (1)
108if (nullableType.IsGenericTypeDefinition)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
44if (!t.IsGenericType || t.IsGenericTypeDefinition)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (6)
353if (method.DeclaringType == null || !method.DeclaringType.IsGenericTypeDefinition) 366if (type.IsGenericTypeDefinition) 388if (!constructor.DeclaringType!.IsGenericTypeDefinition) 399if (type.IsGenericTypeDefinition) 421if (!field.DeclaringType!.IsGenericTypeDefinition) 432if (type.IsGenericTypeDefinition)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
35if (!type.IsGenericTypeDefinition)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (2)
240if (!type.IsGenericTypeDefinition && type.ContainsGenericParameters) 290if (rootType.IsGenericType && (!rootType.IsGenericTypeDefinition || format == Format.ToString))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (3)
432if ((type != null) && type.IsGenericType && !type.IsGenericTypeDefinition) 530Type contextTypeDefinition = context.IsGenericType && !context.IsGenericTypeDefinition ? context.GetGenericTypeDefinition() : context; 543|| (baseType.IsGenericTypeDefinition ? baseType : baseType.GetGenericTypeDefinition()) != genericParameter.DeclaringType)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureConstructedGenericType.cs (1)
17Debug.Assert(genericTypeDefinition.IsGenericTypeDefinition);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureModifiedType.cs (1)
35public override bool IsGenericTypeDefinition => _unmodifiedType.IsGenericTypeDefinition;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeInfo.cs (1)
16public virtual Type[] GenericTypeParameters => IsGenericTypeDefinition ? GetGenericArguments() : [];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (2)
79public virtual Type[] GenericTypeArguments => (IsGenericType && !IsGenericTypeDefinition) ? GetGenericArguments() : []; 818if (!genericTypeDefinition.IsGenericTypeDefinition)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (1)
133if (IsGenericType && !IsGenericTypeDefinition)
System\Reflection\Runtime\General\Assignability.cs (2)
30if (toTypeInfo.IsGenericTypeDefinition) 39if (fromTypeInfo.IsGenericTypeDefinition)
System\Reflection\Runtime\General\Helpers.cs (1)
35Debug.Assert(type.IsGenericTypeDefinition);
System.Private.DataContractSerialization (10)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
105else if (!type.IsGenericTypeDefinition)
System\Runtime\Serialization\ClassDataContract.cs (1)
1330if (type.IsGenericTypeDefinition)
System\Runtime\Serialization\CollectionDataContract.cs (1)
1211bool isOpenGeneric = knownInterfaceType.IsGenericTypeDefinition
System\Runtime\Serialization\DataContract.cs (4)
1293if (type.IsGenericType && !type.IsGenericTypeDefinition) 1405if (type.IsGenericType && !type.IsGenericTypeDefinition) 1511bool isTypeOpenGeneric = type.IsGenericTypeDefinition; 1700return !type.IsGenericTypeDefinition && type.ContainsGenericParameters ? type.Namespace + "." + type.Name : type.FullName!;
System\Runtime\Serialization\DataContractSet.cs (3)
423(Globals.TypeOfIXmlSerializable.IsAssignableFrom(type) && !type.IsGenericTypeDefinition) || 449if (type != null && !type.IsGenericTypeDefinition && !type.ContainsGenericParameters) 600containsGenericType = conflictingType.IsGenericTypeDefinition;
System.Private.Windows.Core (1)
System\TypeExtensions.cs (1)
233type.IsGenericType && !type.IsGenericTypeDefinition && type.GetGenericTypeDefinition() == typeof(Nullable<>)
System.Private.Xml (1)
System\Xml\Serialization\Compilation.cs (1)
446if (t.IsGenericType && !t.IsGenericTypeDefinition)
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
94get { return _typeInfo.IsGenericTypeDefinition; }
System.Reflection.Emit (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (2)
240if (!type.IsGenericTypeDefinition && type.ContainsGenericParameters) 290if (rootType.IsGenericType && (!rootType.IsGenericTypeDefinition || format == Format.ToString))
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
699(type.IsGenericType && !type.IsGenericTypeDefinition) 741if (declaringType.IsGenericTypeDefinition) 1033if (member is FieldBuilderImpl fb && Equals(fb.Module) && !fb.DeclaringType!.IsGenericTypeDefinition)
System.Reflection.MetadataLoadContext (3)
System\CoreRtBridge.cs (1)
21Debug.Assert(t.IsGenericTypeDefinition);
System\Reflection\TypeLoading\General\Assignability.cs (2)
21if (toTypeInfo.IsGenericTypeDefinition) 30if (fromTypeInfo.IsGenericTypeDefinition)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
552if (type != null && !type.IsGenericTypeDefinition && !type.ContainsGenericParameters)
System.Text.Json (6)
System\ReflectionExtensions.cs (2)
181Debug.Assert(baseTypeDefinition.IsGenericTypeDefinition); 581type.IsGenericType && !type.IsGenericTypeDefinition ? type.GetGenericTypeDefinition() : type;
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (1)
207if (converterType.IsGenericTypeDefinition)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
209if (entry.DerivedType is null || !entry.DerivedType.IsGenericTypeDefinition)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (2)
211!type.IsGenericTypeDefinition && 216baseType.IsAssignableFrom(derivedType) && !derivedType.IsGenericTypeDefinition;
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (1)
502if (type.IsGenericType && !type.IsGenericTypeDefinition)
System.Xaml (1)
System\Xaml\XamlType.cs (1)
890underlyingType.IsGenericTypeDefinition)