Base:
property
ContainingType
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingType
20 references to ContainingType
Microsoft.CodeAnalysis.CSharp (20)
Symbols\Source\SourceCustomEventSymbol.cs (1)
230
TypeSymbol.CheckModifierMismatchOnImplementingMember(this.
ContainingType
, this, explicitlyImplementedEvent, isExplicit: true, diagnostics);
Symbols\Source\SourceEventSymbol.cs (18)
542
bool isInterface = this.
ContainingType
.IsInterface;
588
if (this.
ContainingType
.IsStructType())
628
Debug.Assert(!IsStatic ||
ContainingType
.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier.
632
bool isExplicitInterfaceImplementationInInterface =
ContainingType
.IsInterface && IsExplicitInterfaceImplementation;
658
else if (IsPartial && !
ContainingType
.IsPartial())
670
else if (IsAbstract &&
ContainingType
.TypeKind == TypeKind.Struct)
675
else if (IsVirtual &&
ContainingType
.TypeKind == TypeKind.Struct)
692
else if (
ContainingType
.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride)
694
diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(
ContainingType
), location, this);
696
else if (
ContainingType
.IsStatic && !IsStatic)
716
else if (IsAbstract && !
ContainingType
.IsAbstract && (
ContainingType
.TypeKind == TypeKind.Class ||
ContainingType
.TypeKind == TypeKind.Submission))
719
diagnostics.Add(ErrorCode.ERR_AbstractInConcreteClass, location, this,
ContainingType
);
721
else if (IsVirtual &&
ContainingType
.IsSealed)
724
diagnostics.Add(ErrorCode.ERR_NewVirtualInSealed, location, this,
ContainingType
);
989
bool hasExplicitOrExtendedLayoutField() => AssociatedField != null && !IsStatic && (
ContainingType
.Layout.Kind == LayoutKind.Explicit ||
ContainingType
.Layout.Kind == LayoutKind.Extended);
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
97
if (!IsStatic &&
ContainingType
.IsReadOnly)