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)
541bool isInterface = this.ContainingType.IsInterface; 587if (this.ContainingType.IsStructType()) 627Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 631bool isExplicitInterfaceImplementationInInterface = ContainingType.IsInterface && IsExplicitInterfaceImplementation; 657else if (IsPartial && !ContainingType.IsPartial()) 669else if (IsAbstract && ContainingType.TypeKind == TypeKind.Struct) 674else if (IsVirtual && ContainingType.TypeKind == TypeKind.Struct) 691else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride) 693diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(ContainingType), location, this); 695else if (ContainingType.IsStatic && !IsStatic) 715else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission)) 718diagnostics.Add(ErrorCode.ERR_AbstractInConcreteClass, location, this, ContainingType); 720else if (IsVirtual && ContainingType.IsSealed) 723diagnostics.Add(ErrorCode.ERR_NewVirtualInSealed, location, this, ContainingType);
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
97if (!IsStatic && ContainingType.IsReadOnly)