Implemented interface member:
property
IsGenericType
Microsoft.CodeAnalysis.Symbols.INamedTypeSymbolInternal.IsGenericType
73 references to IsGenericType
Microsoft.CodeAnalysis.CSharp (53)
Binder\Binder_Symbols.cs (1)
1687if ((object)namedTypeRight != null && namedTypeRight.IsGenericType)
Binder\ForEachLoopBinder.cs (1)
1103if (collectionType.IsGenericType)
BoundTree\BoundInlineArrayAccess.cs (1)
28IsGenericType: false
Compilation\CSharpCompilation.cs (2)
1958if (mainType is null || mainType.IsGenericType || (mainType.TypeKind != TypeKind.Class && mainType.TypeKind != TypeKind.Struct && !mainType.IsInterface)) 2014if (candidate.IsGenericMethod || candidate.ContainingType.IsGenericType)
Emitter\NoPia\EmbeddedType.cs (1)
34Debug.Assert(!underlyingNamedType.AdaptedNamedTypeSymbol.IsGenericType);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
306if (namedType.IsGenericType)
FlowAnalysis\NullableWalker.cs (2)
8696if (!symbolContainer.IsGenericType) 8701if (!containingType.IsGenericType)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (2)
350if (builderType.IsUnboundGenericType && builderType.ContainingType?.IsGenericType != true && builderType.Arity == 1) 361if (!builderType.IsGenericType)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
164Debug.Assert(!interceptor.ContainingType.IsGenericType);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
716return _currentDynamicCallSiteContainer.IsGenericType ? field.AsMember(_currentDynamicCallSiteContainer) : field;
Symbols\Metadata\PE\DynamicTypeDecoder.cs (2)
226if ((object)containingType != null && containingType.IsGenericType) 234Debug.Assert(newContainingType.IsGenericType);
Symbols\Metadata\PE\MetadataDecoder.cs (1)
372Debug.Assert(candidate?.IsGenericType != true);
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
110if (!type.IsGenericType)
Symbols\Metadata\PE\SymbolFactory.cs (1)
164return ((object)namedType != null && namedType.IsGenericType) ? namedType.AsUnboundGenericType() : type;
Symbols\Metadata\PE\TupleTypeDecoder.cs (2)
261if (containingType is object && containingType.IsGenericType) 264Debug.Assert(decodedContainingType.IsGenericType);
Symbols\MethodSymbol.cs (1)
1051if (isGenericMethod(this) || ContainingType.IsGenericType)
Symbols\NamedTypeSymbol.cs (5)
940if (!IsGenericType) 974if (!IsGenericType) 1010if (!IsGenericType) 1049Debug.Assert(typeA.IsGenericType); 1155if (!this.IsGenericType)
Symbols\NamespaceSymbol.cs (1)
369if (!type.IsReferenceType || !type.IsStatic || type.IsGenericType || !type.MightContainExtensionMethods) return;
Symbols\PublicModel\NamedTypeSymbol.cs (1)
185bool INamedTypeSymbol.IsGenericType => UnderlyingNamedTypeSymbol.IsGenericType;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
494if (newDefinition.Kind == SymbolKind.ErrorType && !newDefinition.IsGenericType) 983if (!method.IsGenericMethod && !retargetedType.IsGenericType)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
74if (this.IsVararg && (IsGenericMethod || ContainingType.IsGenericType || _lazyParameters.Length > 0 && _lazyParameters[_lazyParameters.Length - 1].IsParams))
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5985bool containsExtensionMethods = ((this.IsStatic && !this.IsGenericType) || this.IsScriptClass) &&
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
1750if (!this.IsGenericType) 1779if (interface1.IsGenericType && interface2.IsGenericType &&
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
842if (isAnyNestedMethodGeneric || ContainingType?.IsGenericType == true) 970if (IsGenericMethod || ContainingType.IsGenericType) 1350if (!this.GetIsNewExtensionMember() && ContainingType.IsGenericType)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1241return builderType is NamedTypeSymbol { TypeKind: TypeKind.Class or TypeKind.Struct, IsGenericType: false };
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
107if (this.IsGenericType && !baseContainsErrorTypes && this.DeclaringCompilation.IsAttributeType(localBase))
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
926else if (isVararg && (IsGenericMethod || ContainingType.IsGenericType || Parameters.Length > 0 && Parameters[Parameters.Length - 1].IsParams))
Symbols\Symbol_Attributes.cs (1)
342if (attributeTypesBuilder[i].IsGenericType)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (4)
568else if (containingType.IsArray || !interfaceMethod.ContainingType.IsGenericType) 602if (!interfaceMethod.ContainingType.IsGenericType) 622else if (containingType.IsArray || !interfaceMethod.ContainingType.IsGenericType) 699else if (containingType.IsArray || !interfaceMethod.ContainingType.IsGenericType)
Symbols\TypeSymbol.cs (1)
2562if (elementField is not null && elementField.ContainingType.IsGenericType)
Symbols\TypeSymbolExtensions.cs (1)
1970RoslynDebug.Assert(type.IsGenericType);
Symbols\TypeUnification.cs (2)
150if (!nt1.IsGenericType || !nt2.IsGenericType)
Symbols\TypeWithAnnotations.cs (1)
613if (namedType.IsGenericType)
Symbols\UnboundGenericType.cs (2)
21if (!type.IsGenericType) 33original.AsMember(originalContainingType.IsGenericType ? originalContainingType.AsUnboundGenericType() : originalContainingType);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenTupleTest.cs (7)
491Assert.True(iface.IsGenericType); 506Assert.True(iface.IsGenericType); 518Assert.True(iface.IsGenericType); 530Assert.True(iface.IsGenericType); 693Assert.True(constraint.IsGenericType); 709Assert.True(constraint.IsGenericType); 1003Assert.True(field2Type.IsGenericType);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Attributes\AttributeTests.cs (10)
10242Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10246Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10263Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10271Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10292Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10296Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10318Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10322Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10344Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10348Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\AnonymousTypesSymbolTests.cs (2)
1022Assert.True(fieldsCount == 0 ? !type.IsGenericType : type.IsGenericType);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
445((NamedTypeSymbol)typeSym).IsGenericType)