Implemented interface member:
property
IsGenericType
Microsoft.CodeAnalysis.Symbols.INamedTypeSymbolInternal.IsGenericType
59 references to IsGenericType
Microsoft.CodeAnalysis.CSharp (59)
Binder\Binder_Symbols.cs (1)
1703if ((object)namedTypeRight != null && namedTypeRight.IsGenericType)
Binder\ForEachLoopBinder.cs (1)
1097if (collectionType.IsGenericType)
BoundTree\BoundInlineArrayAccess.cs (1)
28IsGenericType: false
Compilation\CSharpCompilation.cs (2)
2032if (mainType is null || mainType.IsGenericType || (mainType.TypeKind != TypeKind.Class && mainType.TypeKind != TypeKind.Struct && !mainType.IsInterface)) 2088if (candidate.IsGenericMethod || candidate.ContainingType.IsGenericType)
Emitter\NoPia\EmbeddedType.cs (1)
34Debug.Assert(!underlyingNamedType.AdaptedNamedTypeSymbol.IsGenericType);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
359if (namedType.IsGenericType)
FlowAnalysis\NullableWalker.cs (2)
9167if (!symbolContainer.IsGenericType) 9172if (!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)
165Debug.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\PENamedTypeSymbol.cs (2)
1241var thisTypeIsGeneric = IsGenericType; 2406module.HasExtensionAttribute(_handle, ignoreCase: false) && !this.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)
1064if (isGenericMethod(this) || ContainingType.IsGenericType)
Symbols\NamedTypeSymbol.cs (9)
420if (this.IsClassType() && IsStatic && !IsGenericType) 720if (!IsGenericType && candidateSubtypes.All(subtype => !subtype.IsGenericType)) 748if (unifiedSubtype.IsGenericType && unifiedSubtype.ContainsAdditionalTypeParameter(allowedTypeParameters: baseTypeTypeParameters)) 1165if (!IsGenericType) 1199if (!IsGenericType) 1235if (!IsGenericType) 1274Debug.Assert(typeA.IsGenericType); 1380if (!this.IsGenericType)
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)
6232bool containsExtensions = ((this.IsStatic && !this.IsGenericType) || this.IsScriptClass) &&
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
1803if (!this.IsGenericType) 1832if (interface1.IsGenericType && interface2.IsGenericType &&
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
858if (isAnyNestedMethodGeneric || ContainingType?.IsGenericType == true) 986if (IsGenericMethod || ContainingType.IsGenericType) 1366if (!this.IsExtensionBlockMember() && ContainingType.IsGenericType)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1257return builderType is NamedTypeSymbol { TypeKind: TypeKind.Class or TypeKind.Struct, IsGenericType: false };
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
107if (this.IsGenericType && !baseContainsErrorTypes && this.DeclaringCompilation.IsAttributeType(localBase)) 427if (IsGenericType)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
971else if (isVararg && (IsGenericMethod || ContainingType.IsGenericType || Parameters.Length > 0 && Parameters[Parameters.Length - 1].IsParams))
Symbols\Symbol_Attributes.cs (1)
346if (attributeTypesBuilder[i].IsGenericType)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (4)
583else if (containingType.IsArray || !interfaceMethod.ContainingType.IsGenericType) 624if (!interfaceMethod.ContainingType.IsGenericType) 649else if (containingType.IsArray || !interfaceMethod.ContainingType.IsGenericType) 733else if (containingType.IsArray || !interfaceMethod.ContainingType.IsGenericType)
Symbols\TypeSymbol.cs (1)
2574if (elementField is not null && elementField.ContainingType.IsGenericType)
Symbols\TypeSymbolExtensions.cs (1)
2053RoslynDebug.Assert(type.IsGenericType);
Symbols\TypeUnification.cs (2)
169if (!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);