Base:
property
ContainingType
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingType
18 references to ContainingType
Microsoft.CodeAnalysis.CSharp (18)
Symbols\Source\SourceCustomEventSymbol.cs (1)
230TypeSymbol.CheckModifierMismatchOnImplementingMember(this.ContainingType, this, explicitlyImplementedEvent, isExplicit: true, diagnostics);
Symbols\Source\SourceEventSymbol.cs (16)
501bool isInterface = this.ContainingType.IsInterface; 547if (this.ContainingType.IsStructType()) 582Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 586bool isExplicitInterfaceImplementationInInterface = ContainingType.IsInterface && IsExplicitInterfaceImplementation; 612else if (IsPartial && !ContainingType.IsPartial()) 624else if (IsAbstract && ContainingType.TypeKind == TypeKind.Struct) 629else if (IsVirtual && ContainingType.TypeKind == TypeKind.Struct) 646else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride) 648diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(ContainingType), location, this); 650else if (ContainingType.IsStatic && !IsStatic) 670else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission)) 673diagnostics.Add(ErrorCode.ERR_AbstractInConcreteClass, location, this, ContainingType); 675else if (IsVirtual && ContainingType.IsSealed) 678diagnostics.Add(ErrorCode.ERR_NewVirtualInSealed, location, this, ContainingType);
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
97if (!IsStatic && ContainingType.IsReadOnly)