11 overrides of IsConstructedGenericType
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
526public override bool IsConstructedGenericType => false;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
234public override bool IsConstructedGenericType => true;
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
181public override bool IsConstructedGenericType => _unmodifiedType.IsConstructedGenericType;
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
32public abstract override bool IsConstructedGenericType { get; }
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
153public override bool IsConstructedGenericType => typeImpl.IsConstructedGenericType;
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
244public override bool IsConstructedGenericType => false;
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
186public override bool IsConstructedGenericType => false;
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
1058public override bool IsConstructedGenericType => false;
src\System\RuntimeType.CoreCLR.cs (1)
3489public override unsafe bool IsConstructedGenericType
System.Reflection.Emit (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
526public override bool IsConstructedGenericType => false;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
49public abstract override bool IsConstructedGenericType { get; }
79 references to IsConstructedGenericType
BuildActionTelemetryTable (1)
src\Workspaces\Core\Portable\Shared\Extensions\TelemetryExtensions.cs (1)
39=> type.IsConstructedGenericType ? type.GetGenericTypeDefinition() : type;
Microsoft.AspNetCore.App.Analyzers.Test (2)
RouteEmbeddedLanguage\Infrastructure\ExportProviderExtensions.cs (2)
63if (importMany && contractType.IsConstructedGenericType) 73if (contractType.IsConstructedGenericType)
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\XmlComments\GrpcXmlCommentsOperationFilter.cs (1)
37var targetMethod = methodInfo.DeclaringType!.IsConstructedGenericType
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
143if (type.IsConstructedGenericType &&
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubMethodDescriptor.cs (1)
285if (type.IsConstructedGenericType &&
Microsoft.CodeAnalysis.Workspaces (1)
Shared\Extensions\TelemetryExtensions.cs (1)
39=> type.IsConstructedGenericType ? type.GetGenericTypeDefinition() : type;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Rpc\RpcServer.cs (1)
147if (method.ReturnType.IsConstructedGenericType)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
src\Workspaces\MSBuild\BuildHost\Rpc\RpcServer.cs (1)
147if (method.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.DotNet.SwaggerGenerator.CodeGenerator (1)
HelperFactory.cs (1)
284(output.IsConstructedGenericType && output.GetGenericTypeDefinition() == typeof(Nullable<>)))
Microsoft.Extensions.Configuration.Binder (4)
ConfigurationBinder.cs (4)
428Type? interfaceGenericType = type.IsInterface && type.IsConstructedGenericType ? type.GetGenericTypeDefinition() : null; 998if (!type.IsInterface || !type.IsConstructedGenericType) { return false; } 1007if (!type.IsInterface || !type.IsConstructedGenericType) { return false; } 1017if (!type.IsInterface || !type.IsConstructedGenericType) { return false; }
Microsoft.Extensions.DependencyInjection (6)
DependencyInjectionEventSource.cs (1)
211if (descriptor.ServiceType.IsConstructedGenericType)
ServiceLookup\CallSiteFactory.cs (3)
267if (!serviceType.IsConstructedGenericType || 288if (!itemType.IsConstructedGenericType && 681if (serviceType.IsConstructedGenericType && serviceType.GetGenericTypeDefinition() is Type genericDefinition)
ServiceLookup\ServiceIdentifier.cs (1)
61public bool IsConstructedGenericType => ServiceType.IsConstructedGenericType;
ServiceProvider.cs (1)
188if (descriptor.ServiceType.IsGenericType && !descriptor.ServiceType.IsConstructedGenericType)
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.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.Composition.Convention (2)
System\Composition\Convention\ConventionBuilder.cs (1)
367if (iface.IsConstructedGenericType &&
System\Composition\Convention\ImportConventionBuilder.cs (1)
192(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)
29if (type.IsConstructedGenericType) 43if (!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)
100if (type.IsArray != typeName.IsArray || type.IsConstructedGenericType != typeName.IsConstructedGenericType 121else 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 (4)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DiagnosticMethodInfo.cs (1)
34if (declaringType is { IsConstructedGenericType: true })
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
181public override bool IsConstructedGenericType => _unmodifiedType.IsConstructedGenericType;
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureTypeExtensions.cs (1)
52if (!actual.IsConstructedGenericType)
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
153public override bool IsConstructedGenericType => typeImpl.IsConstructedGenericType;
System.Private.Windows.Core (3)
System\TypeExtensions.cs (3)
72|| type.IsConstructedGenericType != typeName.IsConstructedGenericType 101if (type.IsConstructedGenericType) 250if (type.IsConstructedGenericType)
System.Reflection.Emit (3)
System\Reflection\Emit\ModuleBuilderImpl.cs (2)
818if (declaringType.IsConstructedGenericType && 1104if (type.IsConstructedGenericType)
System\Reflection\Emit\TypeBuilderImpl.cs (1)
214if (_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.UnixDomainSocket (1)
System\ServiceModel\Channels\UnixDomainSocketChannelFactory.cs (1)
119if (other.GetType().IsConstructedGenericType)
System.Text.Json (3)
System\ReflectionExtensions.cs (3)
122if (parameter.Member is { DeclaringType.IsConstructedGenericType: true } 138return type.IsConstructedGenericType ? type.GetGenericTypeDefinition() : type; 141if (member.DeclaringType!.IsConstructedGenericType)
xunit.assert (1)
Sdk\AssertEqualityComparer.cs (1)
321 if (typeof(T).IsConstructedGenericType &&