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