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