Base:
property
ContainingType
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingType
17 references to ContainingType
Microsoft.CodeAnalysis.CSharp (17)
Symbols\Source\SourceCustomEventSymbol.cs (1)
228TypeSymbol.CheckNullableReferenceTypeAndScopedMismatchOnImplementingMember(this.ContainingType, this, explicitlyImplementedEvent, isExplicit: true, diagnostics);
Symbols\Source\SourceEventSymbol.cs (15)
439bool isInterface = this.ContainingType.IsInterface; 485if (this.ContainingType.IsStructType()) 519Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 523bool isExplicitInterfaceImplementationInInterface = ContainingType.IsInterface && IsExplicitInterfaceImplementation; 549else if (IsAbstract && ContainingType.TypeKind == TypeKind.Struct) 554else if (IsVirtual && ContainingType.TypeKind == TypeKind.Struct) 571else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride) 573diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(ContainingType), location, this); 575else if (ContainingType.IsStatic && !IsStatic) 595else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission)) 598diagnostics.Add(ErrorCode.ERR_AbstractInConcreteClass, location, this, ContainingType); 600else if (IsVirtual && ContainingType.IsSealed) 603diagnostics.Add(ErrorCode.ERR_NewVirtualInSealed, location, this, ContainingType);
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
89if (!IsStatic && ContainingType.IsReadOnly)