5 implementations of IsGenericType
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationAbstractNamedTypeSymbol.cs (1)
76public 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)
57public bool IsGenericType => _symbol.IsGenericType;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamedTypeSymbol.vb (1)
931Public ReadOnly Property IsGenericType As Boolean Implements INamedTypeSymbol.IsGenericType
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationAbstractNamedTypeSymbol.cs (1)
76public abstract bool IsGenericType { get; }
27 references to IsGenericType
Microsoft.CodeAnalysis (1)
DocumentationCommentId.cs (1)
550if (symbol.IsGenericType)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
360if (delegateContainingType is null || !delegateContainingType.IsGenericType)
NullableImpactingSpanWalker.cs (1)
157else if (symbolInfo.Symbol is INamedTypeSymbol { IsValueType: true, IsGenericType: false })
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
UseUtf8StringLiteralCodeFixProvider.cs (1)
68conversion.Type is INamedTypeSymbol { IsGenericType: true } namedType &&
Microsoft.CodeAnalysis.CSharp.Features (4)
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
360if (delegateContainingType is null || !delegateContainingType.IsGenericType)
GenerateMember\GenerateParameterizedMember\CSharpGenerateConversionService.cs (1)
205if (typeToGenerateIn.IsGenericType)
NullableImpactingSpanWalker.cs (1)
157else if (symbolInfo.Symbol is INamedTypeSymbol { IsValueType: true, IsGenericType: false })
UseUtf8StringLiteralCodeFixProvider.cs (1)
68conversion.Type is INamedTypeSymbol { IsGenericType: true } namedType &&
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\GetSemanticInfoTests.cs (5)
1390return (INamedTypeSymbol)comp.GlobalNamespace.GetMember<INamespaceSymbol>("System").GetMembers("Action").Where(s => !((INamedTypeSymbol)s).IsGenericType).Single(); 5406Assert.False(type.IsGenericType); 5412Assert.False(type.IsGenericType); 5418Assert.True(type.IsGenericType); 5426Assert.True(type.IsGenericType);
Microsoft.CodeAnalysis.Features (4)
FullyQualify\AbstractFullyQualifyService.cs (1)
266=> 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)
57public bool IsGenericType => _symbol.IsGenericType;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamedTypeSymbol.vb (1)
931Public ReadOnly Property IsGenericType As Boolean Implements INamedTypeSymbol.IsGenericType
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\KeywordRecommenders\Declarations\OfKeywordRecommender.vb (1)
112.Where(Function(nt) nt.IsGenericType) _
GenerateMember\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)
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
643return classOrStructType.IsGenericType
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphBuilder.cs (1)
345if (typeSymbol.IsGenericType)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
ObjectBrowser\DescriptionBuilder.cs (2)
59if (typeSymbol.IsGenericType) 126if (typeSymbol.IsGenericType)
Microsoft.VisualStudio.LanguageServices.Implementation (2)
CodeModel\ExternalElements\ExternalCodeClass.cs (1)
105=> TypeSymbol is INamedTypeSymbol { IsGenericType: true };
CodeModel\ExternalElements\ExternalCodeVariable.cs (1)
138? namedType.IsGenericType