Base:
property
ContainingType
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingType
17 references to ContainingType
Microsoft.CodeAnalysis.CSharp (17)
Symbols\Source\SourceCustomEventSymbol.cs (1)
228TypeSymbol.CheckModifierMismatchOnImplementingMember(this.ContainingType, this, explicitlyImplementedEvent, isExplicit: true, diagnostics);
Symbols\Source\SourceEventSymbol.cs (15)
447bool isInterface = this.ContainingType.IsInterface; 493if (this.ContainingType.IsStructType()) 527Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 531bool isExplicitInterfaceImplementationInInterface = ContainingType.IsInterface && IsExplicitInterfaceImplementation; 557else if (IsAbstract && ContainingType.TypeKind == TypeKind.Struct) 562else if (IsVirtual && ContainingType.TypeKind == TypeKind.Struct) 579else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride) 581diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(ContainingType), location, this); 583else if (ContainingType.IsStatic && !IsStatic) 603else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission)) 606diagnostics.Add(ErrorCode.ERR_AbstractInConcreteClass, location, this, ContainingType); 608else if (IsVirtual && ContainingType.IsSealed) 611diagnostics.Add(ErrorCode.ERR_NewVirtualInSealed, location, this, ContainingType);
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
90if (!IsStatic && ContainingType.IsReadOnly)