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)
500bool isInterface = this.ContainingType.IsInterface; 546if (this.ContainingType.IsStructType()) 581Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 585bool isExplicitInterfaceImplementationInInterface = ContainingType.IsInterface && IsExplicitInterfaceImplementation; 611else if (IsPartial && !ContainingType.IsPartial()) 623else if (IsAbstract && ContainingType.TypeKind == TypeKind.Struct) 628else if (IsVirtual && ContainingType.TypeKind == TypeKind.Struct) 645else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride) 647diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(ContainingType), location, this); 649else if (ContainingType.IsStatic && !IsStatic) 669else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission)) 672diagnostics.Add(ErrorCode.ERR_AbstractInConcreteClass, location, this, ContainingType); 674else if (IsVirtual && ContainingType.IsSealed) 677diagnostics.Add(ErrorCode.ERR_NewVirtualInSealed, location, this, ContainingType);
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
96if (!IsStatic && ContainingType.IsReadOnly)