9 overrides of IsConstructedGenericType
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
528public override bool IsConstructedGenericType => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
233public override bool IsConstructedGenericType => true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
184public override bool IsConstructedGenericType => _unmodifiedType.IsConstructedGenericType;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
35public abstract override bool IsConstructedGenericType { get; }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
156public override bool IsConstructedGenericType => typeImpl.IsConstructedGenericType;
System\RuntimeType.NativeAot.cs (1)
411public override bool IsConstructedGenericType
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
67public override bool IsConstructedGenericType
System.Reflection.Emit (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
528public override bool IsConstructedGenericType => false;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
49public abstract override bool IsConstructedGenericType { get; }
96 references to IsConstructedGenericType
ILCompiler.Compiler (2)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\SortableDependencyNode.cs (2)
186(x.GetType().IsConstructedGenericType && y.GetType().IsConstructedGenericType
ILCompiler.ReadyToRun (2)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\SortableDependencyNode.cs (2)
186(x.GetType().IsConstructedGenericType && y.GetType().IsConstructedGenericType
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
143if (type.IsConstructedGenericType &&
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
520&& responseType is { IsConstructedGenericType: true }
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubMethodDescriptor.cs (1)
289if (type.IsConstructedGenericType &&
Microsoft.CodeAnalysis.Workspaces (1)
Shared\Extensions\TelemetryExtensions.cs (1)
39=> type.IsConstructedGenericType ? type.GetGenericTypeDefinition() : type;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Rpc\RpcMethodInvoker.cs (1)
53if (calledMethod.ReturnType.IsConstructedGenericType)
Microsoft.CSharp (5)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (5)
16return type.IsConstructedGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>); 126if (t1.IsConstructedGenericType || t2.IsConstructedGenericType) 128Type t1def = t1.IsConstructedGenericType ? t1.GetGenericTypeDefinition() : t1; 129Type t2def = t2.IsConstructedGenericType ? t2.GetGenericTypeDefinition() : t2;
Microsoft.DotNet.Internal.DependencyInjection.Testing (5)
DependencyInjectionValidation.cs (5)
193if (type.IsConstructedGenericType) 207if (parameterType.IsConstructedGenericType) 212if (!serviceType.IsConstructedGenericType) return false; 231if (!parameterType.IsConstructedGenericType) return false; 257if (type.IsConstructedGenericType)
Microsoft.Extensions.Configuration.Binder (5)
ConfigurationBinder.cs (5)
457Type? interfaceGenericType = type.IsInterface && type.IsConstructedGenericType ? type.GetGenericTypeDefinition() : null; 1051if (!type.IsInterface || !type.IsConstructedGenericType) { return false; } 1060if (!type.IsInterface || !type.IsConstructedGenericType) { return false; } 1069=> type.IsInterface && type.IsConstructedGenericType && type.GetGenericTypeDefinition() == typeof(IEnumerable<>); 1076if (!type.IsInterface || !type.IsConstructedGenericType) { return false; }
Microsoft.Extensions.DependencyInjection (7)
DependencyInjectionEventSource.cs (1)
232if (descriptor.ServiceType.IsConstructedGenericType)
ServiceLookup\CallSiteFactory.cs (5)
231if (serviceIdentifier.ServiceType.IsConstructedGenericType) 267if (!serviceType.IsConstructedGenericType || 290if (!itemType.IsConstructedGenericType && 523serviceType.IsConstructedGenericType && 871if (serviceType.IsConstructedGenericType && serviceType.GetGenericTypeDefinition() is Type genericDefinition)
ServiceProvider.cs (1)
238if (descriptor.ServiceType.IsGenericType && !descriptor.ServiceType.IsConstructedGenericType)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
EmptyServiceProvider.cs (1)
120serviceType.IsConstructedGenericType && serviceType.GetGenericTypeDefinition() == typeof(IEnumerable<>);
Microsoft.ML.Core (1)
CommandLine\CmdParser.cs (1)
1103return type.IsConstructedGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
Microsoft.ML.Predictor.Tests (1)
CmdLine\CmdLine.cs (1)
306if (type.IsConstructedGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
Microsoft.Private.Windows.Core (3)
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\TypeExtensions.cs (1)
26&& !type.IsConstructedGenericType
System\TypeExtensions.cs (2)
40|| type.IsConstructedGenericType != typeName.IsConstructedGenericType 63if (type.IsConstructedGenericType)
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\CompilerServices\Utils.vb (4)
246If t1.IsConstructedGenericType OrElse t2.IsConstructedGenericType Then 247Dim t1def As Type = If(t1.IsConstructedGenericType, t1.GetGenericTypeDefinition(), t1) 248Dim t2def As Type = If(t2.IsConstructedGenericType, t2.GetGenericTypeDefinition(), t2)
PresentationFramework (3)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (1)
116if (iface.IsConstructedGenericType
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (2)
113if (type.IsConstructedGenericType) 139if (!type.IsConstructedGenericType)
System.CommandLine (1)
Argument{T}.cs (1)
118else if (typeof(T).IsConstructedGenericType)
System.Composition.Convention (2)
System\Composition\Convention\ConventionBuilder.cs (1)
349if (iface.IsConstructedGenericType &&
System\Composition\Convention\ImportConventionBuilder.cs (1)
177(typeInfo.AsType().IsConstructedGenericType && s_supportedImportManyTypes.Contains(typeInfo.GetGenericTypeDefinition()));
System.Composition.Hosting (7)
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (1)
18if (!exportKey.ContractType.IsConstructedGenericType || exportKey.ContractType.GetGenericTypeDefinition() != typeof(ExportFactory<>))
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (1)
20if (!contract.ContractType.IsConstructedGenericType || contract.ContractType.GetGenericTypeDefinition() != typeof(ExportFactory<,>))
System\Composition\Hosting\Providers\ImportMany\ImportManyExportDescriptorProvider.cs (1)
20contract.ContractType.IsConstructedGenericType && s_supportedContractTypes.Contains(contract.ContractType.GetGenericTypeDefinition())))
System\Composition\Hosting\Providers\Lazy\LazyExportDescriptorProvider.cs (1)
19if (!exportKey.ContractType.IsConstructedGenericType || exportKey.ContractType.GetGenericTypeDefinition() != typeof(Lazy<>))
System\Composition\Hosting\Providers\Lazy\LazyWithMetadataExportDescriptorProvider.cs (1)
19if (!exportKey.ContractType.IsConstructedGenericType || exportKey.ContractType.GetGenericTypeDefinition() != typeof(Lazy<,>))
System\Composition\Hosting\Util\Formatters.cs (2)
23if (type.IsConstructedGenericType) 34if (!closedGenericType.IsConstructedGenericType)
System.Composition.Runtime (2)
System\Composition\Runtime\Util\Formatters.cs (2)
19type.IsConstructedGenericType ? FormatClosedGeneric(type) : 25Debug.Assert(closedGenericType.IsConstructedGenericType);
System.Composition.TypedParts (1)
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (1)
106if (!contract.ContractType.IsConstructedGenericType)
System.Formats.Nrbf (2)
System\Formats\Nrbf\SerializationRecord.cs (2)
95if (type.IsArray != typeName.IsArray || type.IsConstructedGenericType != typeName.IsConstructedGenericType 116else if (type.IsConstructedGenericType)
System.Linq.Expressions (2)
System\Dynamic\Utils\TypeUtils.cs (2)
100public static bool IsNullableType(this Type type) => type.IsConstructedGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>); 872if (type.IsConstructedGenericType && AreEquivalent(type.GetGenericTypeDefinition(), definition))
System.Private.CoreLib (18)
Internal\Reflection\Augments\ReflectionAugments.cs (2)
124if (methodBase.DeclaringType.IsConstructedGenericType) // For compat with desktop, insist that the caller pass us the declaring type to resolve members of generic types. 168if (fieldInfo.DeclaringType.IsConstructedGenericType) // For compat with desktop, insist that the caller pass us the declaring type to resolve members of generic types.
Internal\Reflection\Extensions\NonPortable\CustomAttributeSearcher.cs (2)
64if (actualType.IsConstructedGenericType && actualType.GetGenericTypeDefinition() == optionalAttributeTypeFilter) 73if (type.IsConstructedGenericType && type.GetGenericTypeDefinition() == optionalAttributeTypeFilter)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
184public override bool IsConstructedGenericType => _unmodifiedType.IsConstructedGenericType;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureModifiedType.cs (1)
36public override bool IsConstructedGenericType => _unmodifiedType.IsConstructedGenericType;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureTypeExtensions.cs (1)
52if (!actual.IsConstructedGenericType)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
156public override bool IsConstructedGenericType => typeImpl.IsConstructedGenericType;
System\Delegate.cs (1)
285if (declaringType.IsConstructedGenericType)
System\Reflection\Runtime\BindingFlagSupport\MemberPolicies.cs (2)
159if (t1.IsConstructedGenericType && t2.IsConstructedGenericType)
System\Reflection\Runtime\General\Assignability.cs (4)
192if (!(fromTypeInfo.IsConstructedGenericType && toTypeInfo.IsConstructedGenericType)) 351if (toTypeInfo.IsConstructedGenericType) 362if (ifc.IsConstructedGenericType)
System\Reflection\Runtime\MethodInfos\CustomMethodInvoker.cs (1)
108if (_thisType.IsConstructedGenericType && _thisType.GetGenericTypeDefinition() == typeof(Nullable<>))
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.cs (1)
20bool isNullable = declaringType.IsConstructedGenericType && declaringType.GetGenericTypeDefinition() == typeof(Nullable<>);
System\Reflection\Runtime\MethodInfos\RuntimeNamedMethodInfo.cs (1)
280if (DeclaringType.IsConstructedGenericType)
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
71return _underlyingType.IsConstructedGenericType;
System.Private.Windows.Core (2)
System\TypeExtensions.cs (2)
40|| type.IsConstructedGenericType != typeName.IsConstructedGenericType 63if (type.IsConstructedGenericType)
System.Reflection.Emit (3)
System\Reflection\Emit\ModuleBuilderImpl.cs (2)
826if (declaringType.IsConstructedGenericType && 1095if (type.IsConstructedGenericType)
System\Reflection\Emit\TypeBuilderImpl.cs (1)
202if (_typeParent!.IsConstructedGenericType &&
System.Reflection.MetadataLoadContext (9)
System\Reflection\Runtime\BindingFlagSupport\MemberPolicies.cs (1)
152if (t1.IsConstructedGenericType)
System\Reflection\Runtime\SignatureTypeExtensions.cs (3)
53else if (pattern.IsConstructedGenericType) 55if (!actual.IsConstructedGenericType) 131else if (signatureType.IsConstructedGenericType)
System\Reflection\TypeLoading\General\Assignability.cs (5)
45if (toTypeInfo.IsConstructedGenericType && toTypeInfo.GetGenericTypeDefinition() == coreTypes[CoreType.NullableT]) 190if (!(fromTypeInfo.IsConstructedGenericType && toTypeInfo.IsConstructedGenericType)) 338if (toTypeInfo.IsConstructedGenericType) 349if (ifc.IsConstructedGenericType)
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\TcpChannelFactory.cs (1)
106if (other.GetType().IsConstructedGenericType)
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\UnixDomainSocketChannelFactory.cs (1)
119if (other.GetType().IsConstructedGenericType)