Base:
property
ContainingType
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingType
37 references to ContainingType
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder_Statements.cs (1)
1773TypeSymbol.Equals(sourceProperty.ContainingType, fromMember.ContainingType, TypeCompareKind.AllIgnoreOptions) &&
Compiler\MethodCompiler.cs (1)
861_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 (21)
305if (ContainingType.IsInterface && !IsStatic) 801if (!IsStatic && ContainingType.IsReadOnly) 875if (ContainingType.IsReadOnly) 897var overriddenProperty = (PropertySymbol)this.GetLeastOverriddenMember(this.ContainingType); 907ContainingType.IsInterface && 1021TypeSymbol.CheckModifierMismatchOnImplementingMember(this.ContainingType, this, explicitlyImplementedProperty, isExplicit: true, diagnostics); 1059Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 1061bool isExplicitInterfaceImplementationInInterface = isExplicitInterfaceImplementation && ContainingType.IsInterface; 1082else if (IsPartial && !ContainingType.IsPartial()) 1094else if (IsAbstract && ContainingType.TypeKind == TypeKind.Struct) 1099else if (IsVirtual && ContainingType.TypeKind == TypeKind.Struct) 1116else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride) 1118diagnostics.Add(AccessCheck.GetProtectedMemberInSealedTypeError(ContainingType), location, this); 1120else if (ContainingType.IsStatic && !IsStatic) 1389AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this, ContainingType.GetNullableContextValue(), type)); 1562CSharpAttributeData.DecodeMemberNotNullAttribute<PropertyWellKnownAttributeData>(ContainingType, ref arguments); 1567CSharpAttributeData.DecodeMemberNotNullWhenAttribute<PropertyWellKnownAttributeData>(ContainingType, ref arguments); 1575if (ContainingType.IsInterface || IsExplicitInterfaceImplementation) 1837else if (this.IsAutoPropertyOrUsesFieldKeyword && type.IsRefLikeOrAllowsRefLikeType() && (this.IsStatic || !this.ContainingType.IsRefLikeType)) 1847diagnostics.Add(ErrorFacts.GetStaticClassReturnCode(ContainingType.IsInterfaceType()), TypeLocation, type); 1852diagnostics.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;