Base:
property
ContainingType
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingType
39 references to ContainingType
Microsoft.CodeAnalysis.CSharp (39)
Binder\Binder_Statements.cs (1)
1785TypeSymbol.Equals(sourceProperty.ContainingType, fromMember.ContainingType, TypeCompareKind.AllIgnoreOptions) &&
Compiler\MethodCompiler.cs (1)
864_moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter());
Compiler\SynthesizedMetadataCompiler.cs (1)
111_moduleBeingBuilt.AddSynthesizedDefinition(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter());
Symbols\Source\SourcePropertySymbol.cs (6)
521ContainingType, 534ContainingType, 577if (type.Type.HasFileLocalTypes() && !ContainingType.HasFileLocalTypes()) 579diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, type.Type, ContainingType); 659else if (param.Type.HasFileLocalTypes() && !this.ContainingType.HasFileLocalTypes()) 661diagnostics.Add(ErrorCode.ERR_FileTypeDisallowedInSignature, Location, param.Type, this.ContainingType);
Symbols\Source\SourcePropertySymbolBase.cs (23)
306if (ContainingType.IsInterface && !IsStatic) 794if (!IsStatic && ContainingType.IsReadOnly) 868if (ContainingType.IsReadOnly) 890var overriddenProperty = (PropertySymbol)this.GetLeastOverriddenMember(this.ContainingType); 900ContainingType.IsInterface && 1014TypeSymbol.CheckModifierMismatchOnImplementingMember(this.ContainingType, this, explicitlyImplementedProperty, isExplicit: true, diagnostics); 1052Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 1054bool isExplicitInterfaceImplementationInInterface = isExplicitInterfaceImplementation && ContainingType.IsInterface; 1075else if (IsPartial && !ContainingType.IsPartial()) 1087else if (IsAbstract && ContainingType.TypeKind == TypeKind.Struct) 1092else if (IsVirtual && ContainingType.TypeKind == TypeKind.Struct) 1109else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride) 1111diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(ContainingType), location, this); 1113else if (ContainingType.IsStatic && !IsStatic) 1382AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this, ContainingType.GetNullableContextValue(), type)); 1555CSharpAttributeData.DecodeMemberNotNullAttribute<PropertyWellKnownAttributeData>(ContainingType, ref arguments); 1560CSharpAttributeData.DecodeMemberNotNullWhenAttribute<PropertyWellKnownAttributeData>(ContainingType, ref arguments); 1573if (ContainingType.IsInterface || IsExplicitInterfaceImplementation) 1837if (!this.IsStatic && (ContainingType.IsRecord || ContainingType.IsRecordStruct) && type.IsPointerOrFunctionPointer()) 1842else if (type.IsRefLikeOrAllowsRefLikeType() && (this.IsStatic || !this.ContainingType.IsRefLikeType)) 1853diagnostics.Add(ErrorFacts.GetStaticClassReturnCode(ContainingType.IsInterfaceType()), TypeLocation, type); 1858diagnostics.Add(ErrorFacts.GetStaticClassParameterCode(ContainingType.IsInterfaceType()), TypeLocation, type);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (4)
62=> ContainingType.GetFirstLocation(); 67ContainingType, 70ContainingType.GetFirstLocation(), 71(CSharpSyntaxNode)((SourceMemberContainerTypeSymbol)ContainingType).SyntaxReferences[0].GetSyntax(),
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (2)
81var usesInit = !isGet && ShouldUseInit(ContainingType); 85ContainingType,
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
152=> _property.ContainingType;