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