Base:
property
DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp.Symbol.DeclaredAccessibility
2 overrides of DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourceCustomEventAccessorSymbol.cs (1)
72public override Accessibility DeclaredAccessibility
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
290public sealed override Accessibility DeclaredAccessibility
23 references to DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp (7)
Symbols\Source\SourceConstructorSymbol.cs (1)
151else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
243if (this.DeclaredAccessibility <= Accessibility.Private || MethodKind == MethodKind.ExplicitInterfaceImplementation)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
698|| definition.DeclaredAccessibility != implementation.DeclaredAccessibility)
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (2)
347else if (this.DeclaredAccessibility == Accessibility.Private && (IsVirtual || (IsAbstract && !isExplicitInterfaceImplementationInInterface) || IsOverride)) 416else if (ContainingType.IsSealed && this.DeclaredAccessibility.HasProtected() && !this.IsOverride)
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
79else if (this.DeclaredAccessibility != Accessibility.Public || !this.IsStatic)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
Semantics\RecordStructTests.cs (2)
4309Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility); 4318Assert.Equal(Accessibility.Public, objectEquals.DeclaredAccessibility);
Semantics\RecordTests.cs (7)
9987Assert.Equal(Accessibility.Protected, b1Ctor.DeclaredAccessibility); 18091Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility); 18200Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility); 18464Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility); 18624Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility); 18663Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility); 18699Assert.Equal(Accessibility.Public, recordEquals.DeclaredAccessibility);
Semantics\TopLevelStatementsTests.cs (7)
9046Assert.Equal(Accessibility.Private, entryPoint.DeclaredAccessibility); 9101Assert.Equal(Accessibility.Private, entryPoint.DeclaredAccessibility); 9143Assert.Equal(Accessibility.Private, entryPoint.DeclaredAccessibility); 9165Assert.Equal(Accessibility.Private, entryPoint.DeclaredAccessibility); 9187Assert.Equal(Accessibility.Private, entryPoint.DeclaredAccessibility); 9216Assert.Equal(Accessibility.Private, entryPoint.DeclaredAccessibility); 9310Assert.Equal(Accessibility.Private, entryPoint.DeclaredAccessibility);