7 overrides of IsGenericTypeDefinition
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
232public override bool IsGenericTypeDefinition => false;
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
31public abstract override bool IsGenericTypeDefinition { get; }
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
180public override bool IsGenericTypeDefinition => false;
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
1055public override bool IsGenericTypeDefinition => IsGenericType;
src\System\RuntimeType.CoreCLR.cs (1)
3513public override unsafe 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; }
102 references to 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\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (2)
41if (!type.IsInterface && !type.IsAbstract && !type.IsGenericTypeDefinition) 128if (!type.IsInterface && !type.IsAbstract && !type.IsGenericTypeDefinition)
src\Components\Endpoints\src\FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (2)
41if (!type.IsAbstract && !type.IsGenericTypeDefinition) 107if (!type.IsAbstract && !type.IsGenericTypeDefinition)
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.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
418foreach (var serviceType in services.Select(d => d.ServiceType).Where(t => !t.IsGenericTypeDefinition).Distinct())
Microsoft.CodeAnalysis.CSharp (1)
Symbols\AssemblySymbol.cs (1)
791Debug.Assert(currentTypeInfo.IsGenericTypeDefinition || !currentTypeInfo.IsGenericType);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\TypeImpl.cs (1)
285get { return Type.IsGenericTypeDefinition; }
Microsoft.CodeAnalysis.Scripting (3)
Hosting\ObjectFormatter\CommonTypeNameFormatter.cs (2)
239Type[] genericArguments = typeInfo.IsGenericTypeDefinition ? typeInfo.GenericTypeParameters : typeInfo.GenericTypeArguments; 289int currentArgCount = (typeInfo.IsGenericTypeDefinition ? typeInfo.GenericTypeParameters.Length : typeInfo.GenericTypeArguments.Length) - genericArgIndex;
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
117if (proxyType.GetTypeInfo().IsGenericTypeDefinition)
Microsoft.Extensions.AI.Abstractions (3)
src\Shared\JsonSchemaExporter\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 || 666if (serviceType.IsGenericTypeDefinition)
Microsoft.ML.Core (1)
Utilities\PlatformUtils.cs (1)
37return typeInfo.IsGenericTypeDefinition
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)
PresentationBuildTasks (3)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (3)
2305Debug.Assert(genericName.Length > 0 || t.IsGenericTypeDefinition); 2377if (refType == null || !refType.IsGenericType || !refType.IsGenericTypeDefinition || typeArgsList == null) 2462Debug.Assert(_typeArgsList == null || (baseClass.IsGenericType && baseClass.IsGenericTypeDefinition));
System.CodeDom (1)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
112else if (!type.IsGenericTypeDefinition)
System.ComponentModel.Composition (4)
Microsoft\Internal\ReflectionServices.cs (2)
86!targetOpenInterfaceType.IsGenericTypeDefinition || 87instanceType.IsGenericTypeDefinition)
System\ComponentModel\Composition\ContractNameServices.cs (1)
129WriteGenericType(typeName, type, type.IsGenericTypeDefinition, genericTypeArguments, formatGenericName);
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
113if (!baseType.IsGenericTypeDefinition)
System.Composition.Convention (3)
System\Composition\Convention\ConventionBuilder.cs (2)
387if (ti.IsGenericTypeDefinition || bti.IsGenericTypeDefinition)
System\Composition\Convention\ImportConventionBuilder.cs (1)
191(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 (22)
src\libraries\System.Private.CoreLib\src\System\Nullable.cs (1)
107if (nullableType.IsGenericType && !nullableType.IsGenericTypeDefinition)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
44if (!t.IsGenericType || t.IsGenericTypeDefinition)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (6)
346if (method.DeclaringType == null || !method.DeclaringType.IsGenericTypeDefinition) 359if (type.IsGenericTypeDefinition) 381if (!constructor.DeclaringType!.IsGenericTypeDefinition) 392if (type.IsGenericTypeDefinition) 414if (!field.DeclaringType!.IsGenericTypeDefinition) 425if (type.IsGenericTypeDefinition)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
36if (!type.IsGenericTypeDefinition)
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\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (3)
444if ((type != null) && type.IsGenericType && !type.IsGenericTypeDefinition) 542Type contextTypeDefinition = context.IsGenericType && !context.IsGenericTypeDefinition ? context.GetGenericTypeDefinition() : context; 555|| (baseType.IsGenericTypeDefinition ? baseType : baseType.GetGenericTypeDefinition()) != genericParameter.DeclaringType)
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeInfo.cs (1)
16public virtual Type[] GenericTypeParameters => IsGenericTypeDefinition ? GetGenericArguments() : EmptyTypes;
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
79public virtual Type[] GenericTypeArguments => (IsGenericType && !IsGenericTypeDefinition) ? GetGenericArguments() : EmptyTypes;
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (1)
105if (IsGenericType && !IsGenericTypeDefinition)
src\System\Reflection\Emit\RuntimeILGenerator.cs (1)
713bool getGenericDefinition = (opcode == OpCodes.Ldtoken && cls != null && cls.IsGenericTypeDefinition);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (2)
217Debug.Assert(!type.IsGenericType || type.IsGenericTypeDefinition, "Must not have generic arguments."); 908if ((type.IsGenericType && (!type.IsGenericTypeDefinition || !getGenericDefinition))
src\System\Reflection\Emit\SignatureHelper.cs (1)
333else if (clsArgument.IsGenericType && (!clsArgument.IsGenericTypeDefinition || !lastWasGenericInst))
src\System\RuntimeType.CoreCLR.cs (1)
1511if (!m_runtimeType.GetRootElementType().IsGenericTypeDefinition && m_runtimeType.ContainsGenericParameters)
System.Private.DataContractSerialization (10)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
112else if (!type.IsGenericTypeDefinition)
System\Runtime\Serialization\ClassDataContract.cs (1)
1328if (type.IsGenericTypeDefinition)
System\Runtime\Serialization\CollectionDataContract.cs (1)
1209bool isOpenGeneric = knownInterfaceType.IsGenericTypeDefinition
System\Runtime\Serialization\DataContract.cs (4)
1268if (type.IsGenericType && !type.IsGenericTypeDefinition) 1380if (type.IsGenericType && !type.IsGenericTypeDefinition) 1486bool isTypeOpenGeneric = type.IsGenericTypeDefinition; 1675return !type.IsGenericTypeDefinition && type.ContainsGenericParameters ? type.Namespace + "." + type.Name : type.FullName!;
System\Runtime\Serialization\DataContractSet.cs (3)
417(Globals.TypeOfIXmlSerializable.IsAssignableFrom(type) && !type.IsGenericTypeDefinition) || 443if (type != null && !type.IsGenericTypeDefinition && !type.ContainsGenericParameters) 594containsGenericType = conflictingType.IsGenericTypeDefinition;
System.Private.Windows.Core (1)
System\TypeExtensions.cs (1)
278type.IsGenericType && !type.IsGenericTypeDefinition && type.GetGenericTypeDefinition() == typeof(Nullable<>)
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
94get { return _typeInfo.IsGenericTypeDefinition; }
System.Reflection.Emit (5)
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)
696(type.IsGenericType && !type.IsGenericTypeDefinition)) 737if (declaringType.IsGenericTypeDefinition) 1042if (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 (2)
System\Runtime\Serialization\Schema\CodeExporter.cs (2)
542if (type != null && !type.IsGenericTypeDefinition && !type.ContainsGenericParameters) 1436return !type.IsGenericTypeDefinition && type.ContainsGenericParameters ? type.Namespace + "." + type.Name : type.FullName!;
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (2)
189!type.IsGenericTypeDefinition && 194baseType.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)
891underlyingType.IsGenericTypeDefinition)
xunit.assert (1)
Sdk\ArgumentFormatter.cs (1)
525 if (typeInfo.IsGenericTypeDefinition)