8 implementations of IsGenericType
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
71public abstract bool IsGenericType { get; }
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
71public abstract bool IsGenericType { get; }
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
71public abstract bool IsGenericType { get; }
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\NamedTypeSymbol.cs (1)
185bool INamedTypeSymbol.IsGenericType => UnderlyingNamedTypeSymbol.IsGenericType;
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
56public bool IsGenericType => _symbol.IsGenericType;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamedTypeSymbol.vb (1)
941Public ReadOnly Property IsGenericType As Boolean Implements INamedTypeSymbol.IsGenericType, INamedTypeSymbolInternal.IsGenericType
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
71public abstract bool IsGenericType { get; }
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
71public abstract bool IsGenericType { get; }
109 references to IsGenericType
Aspire.Hosting.Integration.Analyzers (7)
AspireExportAnalyzer.cs (7)
468if (type is not INamedTypeSymbol namedType || !namedType.IsGenericType) 495if (type is not INamedTypeSymbol namedType || !namedType.IsGenericType) 893if (type is INamedTypeSymbol namedType && namedType.IsGenericType) 1046if (type is not INamedTypeSymbol namedType || !namedType.IsGenericType) 1068if (type is not INamedTypeSymbol namedType || !namedType.IsGenericType) 1210if (namedType.IsGenericType && 1219if (iface.IsGenericType &&
ConfigurationSchemaGenerator (8)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (5)
221if (type is INamedTypeSymbol { IsGenericType: true } genericType && 805if (@interface.IsGenericType) 808candidate.IsGenericType && 823if (type.IsGenericType) 834if (type is not INamedTypeSymbol { IsGenericType: true } genericType)
RuntimeSource\Configuration.Binder\Parser\Extensions.cs (1)
105if (type is not INamedTypeSymbol { IsGenericType: true } namedType)
RuntimeSource\Configuration.Binder\Parser\OptionsBuilderConfigurationExtensions.cs (1)
22@params[0].Type is not INamedTypeSymbol { IsGenericType: true } genericType ||
RuntimeSource\SourceGenerators\TypeModelHelper.cs (1)
15if (!type.IsGenericType)
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DiagnosticHelpers.cs (1)
69namedType.IsGenericType)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
413!namedType.IsGenericType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
177return classOrStructType.IsGenericType
ILLink.RoslynAnalyzer (6)
TrimAnalysis\GenericArgumentDataFlow.cs (5)
43while (type is { IsGenericType: true }) 86if (typeArgument is INamedTypeSymbol namedTypeArgument && namedTypeArgument.IsGenericType) 93while (type is { IsGenericType: true }) 100if (typeArgument is INamedTypeSymbol namedTypeSymbol && namedTypeSymbol.IsGenericType 120if (typeArgument is INamedTypeSymbol namedTypeSymbol && namedTypeSymbol.IsGenericType
TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
53if (foundType is INamedTypeSymbol namedType && namedType.IsGenericType)
Microsoft.AspNetCore.App.Analyzers (2)
RouteHandlers\DisallowReturningActionResultFromMapMethods.cs (1)
91if (returnType is not INamedTypeSymbol { Name: "Task" or "ValueTask", IsGenericType: true, TypeArguments: { Length: 1 } } taskLike)
src\aspnetcore\src\Shared\Roslyn\MvcFacts.cs (1)
38if (type.IsGenericType || type.IsUnboundGenericType)
Microsoft.AspNetCore.Components.Analyzers (1)
VirtualizeItemComparerAnalyzer.cs (1)
62var originalDef = typeArg is INamedTypeSymbol namedType && namedType.IsGenericType
Microsoft.AspNetCore.Mvc.Analyzers (1)
src\aspnetcore\src\Shared\Roslyn\MvcFacts.cs (1)
38if (type.IsGenericType || type.IsUnboundGenericType)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
src\aspnetcore\src\Shared\Roslyn\MvcFacts.cs (1)
38if (type.IsGenericType || type.IsUnboundGenericType)
Microsoft.CodeAnalysis (1)
DocumentationCommentId.cs (1)
618if (symbol.IsGenericType)
Microsoft.CodeAnalysis.Analyzers (5)
MetaAnalyzers\DiagnosticAnalyzerAPIUsageAnalyzer.cs (1)
273if (usedType.IsGenericType)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
360if (usedType.IsGenericType)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DiagnosticHelpers.cs (1)
69namedType.IsGenericType)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
413!namedType.IsGenericType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
177return classOrStructType.IsGenericType
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
360if (usedType.IsGenericType)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DiagnosticHelpers.cs (1)
69namedType.IsGenericType)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
413!namedType.IsGenericType)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
177return classOrStructType.IsGenericType
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (1)
152else if (symbolInfo.Symbol is INamedTypeSymbol { IsValueType: true, IsGenericType: false })
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
409if (delegateContainingType is null || !delegateContainingType.IsGenericType)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (1)
199if (typeToGenerateIn.IsGenericType)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
64conversion.Type is INamedTypeSymbol { IsGenericType: true } namedType &&
Microsoft.CodeAnalysis.CSharp.Features (5)
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
176if (type.IsGenericType)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (1)
152else if (symbolInfo.Symbol is INamedTypeSymbol { IsValueType: true, IsGenericType: false })
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
409if (delegateContainingType is null || !delegateContainingType.IsGenericType)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (1)
199if (typeToGenerateIn.IsGenericType)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
64conversion.Type is INamedTypeSymbol { IsGenericType: true } namedType &&
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeQuality.Analyzers\Maintainability\CSharpAvoidUninstantiatedInternalClasses.cs (1)
27namedTypeSymbol.IsGenericType)
Microsoft.CodeAnalysis.Features (5)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
3463INamedTypeSymbol { IsGenericType: false } or // changes in type parameter attributes and constraints need type update
FullyQualify\AbstractFullyQualifyService.cs (1)
265=> symbol.ContainingSymbol is INamespaceSymbol or INamedTypeSymbol { IsGenericType: false };
FullyQualify\AbstractFullyQualifyService.SymbolResult.cs (2)
48Debug.Assert(Symbol is INamespaceSymbol || !((INamedTypeSymbol)Symbol).IsGenericType); 49Debug.Assert(other.Symbol is INamespaceSymbol || !((INamedTypeSymbol)other.Symbol).IsGenericType);
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
56public bool IsGenericType => _symbol.IsGenericType;
Microsoft.CodeAnalysis.Razor.Compiler (12)
Language\Extensions\INamedTypeSymbolExtensions.cs (1)
14!symbol.IsGenericType &&
Language\SymbolCache.NamedTypeSymbolData.IsViewComponentResult.cs (1)
27symbol.IsGenericType ||
Language\TagHelpers\Producers\ComponentTagHelperProducer.cs (4)
130if (type.IsGenericType) 261if (type is INamedTypeSymbol namedType && namedType.IsGenericType) 713(property.Type is INamedTypeSymbol { IsGenericType: true } namedType && 720(property.Type is INamedTypeSymbol { IsGenericType: true } namedType &&
Mvc.Version1_X\ViewComponentTagHelperDescriptorFactory.cs (2)
121else if (returnType.IsGenericType && SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, _genericTaskSymbol)) 147else if (returnType.IsGenericType && SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, _genericTaskSymbol))
Mvc.Version2_X\ViewComponentTagHelperDescriptorFactory.cs (2)
115else if (returnType.IsGenericType && SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, _genericTaskSymbol)) 141else if (returnType.IsGenericType && SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, _genericTaskSymbol))
Mvc\ViewComponentTagHelperDescriptorFactory.cs (2)
115else if (returnType.IsGenericType && SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, _genericTaskSymbol)) 141else if (returnType.IsGenericType && SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, _genericTaskSymbol))
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
360if (usedType.IsGenericType)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DiagnosticHelpers.cs (1)
69namedType.IsGenericType)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
413!namedType.IsGenericType)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamedTypeSymbol.vb (1)
941Public ReadOnly Property IsGenericType As Boolean Implements INamedTypeSymbol.IsGenericType, INamedTypeSymbolInternal.IsGenericType
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (1)
146If typeToGenerateIn.IsGenericType Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (1)
146If typeToGenerateIn.IsGenericType Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (1)
179Debug.Assert(genericType.IsGenericType)
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
177return classOrStructType.IsGenericType
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
214if (mt.IsGenericType)
Microsoft.Gen.BuildMetadata (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
123=> attributeType.IsGenericType ?
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
123=> attributeType.IsGenericType ?
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
123=> attributeType.IsGenericType ?
Microsoft.Gen.Logging (2)
Parsing\TypeSymbolExtensions.cs (1)
95if (sym is INamedTypeSymbol namedTypeSymbol && namedTypeSymbol.IsGenericType && namedTypeSymbol.OriginalDefinition.SpecialType == SpecialType.System_Nullable_T)
src\Generators\Shared\GeneratorUtilities.cs (1)
123=> attributeType.IsGenericType ?
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
123=> attributeType.IsGenericType ?
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
123=> attributeType.IsGenericType ?
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
123=> attributeType.IsGenericType ?
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSMarshalAsAttributeInfoParser.cs (2)
21public bool CanParseAttributeType(INamedTypeSymbol attributeType) => attributeType.IsGenericType && SymbolEqualityComparer.Default.Equals(_jsMarshalAsAttribute, attributeType.ConstructUnboundGenericType()); 27if (jsTypeArgs.IsGenericType)
Microsoft.Interop.SourceGeneration (3)
ManagedTypeInfo.cs (1)
66return new DelegateTypeInfo(typeName, diagnosticFormattedName, type is INamedTypeSymbol { IsGenericType: true });
ManualTypeMarshallingHelper.cs (2)
85return entryPointType.IsGenericType 358if (!entryType.IsGenericType)
Microsoft.Maui.Controls.BindingSourceGen (1)
ITypeSymbolExtensions.cs (1)
29 && namedTypeSymbol.IsGenericType
Roslyn.Diagnostics.Analyzers (4)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
360if (usedType.IsGenericType)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DiagnosticHelpers.cs (1)
69namedType.IsGenericType)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
413!namedType.IsGenericType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
177return classOrStructType.IsGenericType
System.Text.Json.SourceGeneration (16)
Helpers\KnownTypeSymbols.cs (2)
306if (type is not INamedTypeSymbol { IsGenericType: true, ConstructedFrom: INamedTypeSymbol genericTypeDef }) 359if (type is not INamedTypeSymbol { IsGenericType: true, ConstructedFrom: INamedTypeSymbol genericTypeDef })
Helpers\RoslynExtensions.cs (4)
74else if (namedType.IsGenericType) 84if (containingType?.IsGenericType == true) 183return candidate.IsGenericType && SymbolEqualityComparer.Default.Equals(candidate.ConstructedFrom, baseType); 188=> type is INamedTypeSymbol { IsGenericType: true } namedType && SymbolEqualityComparer.Default.Equals(namedType, namedType.ConstructedFrom);
JsonSourceGenerator.Parser.cs (9)
813&& (type is not INamedTypeSymbol { IsGenericType: true } 1965&& (memberInfo.ContainingType is not INamedTypeSymbol { IsGenericType: true } 1967OpenDeclaringTypeFQN = memberInfo.ContainingType is INamedTypeSymbol { IsGenericType: true } && _knownSymbols.SupportsGenericUnsafeAccessors 1969OpenPropertyTypeFQN = memberInfo.ContainingType is INamedTypeSymbol { IsGenericType: true } && _knownSymbols.SupportsGenericUnsafeAccessors 1971DeclaringTypeParameterNames = memberInfo.ContainingType is INamedTypeSymbol { IsGenericType: true } namedType && _knownSymbols.SupportsGenericUnsafeAccessors 1973DeclaringTypeParameterConstraintClauses = memberInfo.ContainingType is INamedTypeSymbol { IsGenericType: true } namedType2 && _knownSymbols.SupportsGenericUnsafeAccessors 2384typeToConvert is INamedTypeSymbol { IsGenericType: true } genericTypeToConvert) 2630if (type is not INamedTypeSymbol namedType || !namedType.IsGenericType) 2791Debug.Assert(type.IsGenericType);
src\runtime\src\libraries\Common\src\SourceGenerators\TypeModelHelper.cs (1)
15if (!type.IsGenericType)