Base:
property
DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp.Symbol.DeclaredAccessibility
13 overrides of DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp (13)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
147public sealed override Accessibility DeclaredAccessibility
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
200public sealed override Accessibility DeclaredAccessibility
Symbols\ErrorTypeSymbol.cs (1)
374public sealed override Accessibility DeclaredAccessibility
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
634public override Accessibility DeclaredAccessibility
Symbols\Source\SourceMemberContainerSymbol.cs (1)
880public override Accessibility DeclaredAccessibility
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
132public override Accessibility DeclaredAccessibility => Accessibility.Private;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
809public override Accessibility DeclaredAccessibility => Accessibility.Internal;
Symbols\Synthesized\SynthesizedContainer.cs (1)
150public override Accessibility DeclaredAccessibility => Accessibility.Private;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
72public override Accessibility DeclaredAccessibility => Accessibility.Internal;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
91public override Accessibility DeclaredAccessibility => Accessibility.Internal;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
57public override Accessibility DeclaredAccessibility => Accessibility.Internal;
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
50public override Accessibility DeclaredAccessibility => Accessibility.Internal;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
103public override Accessibility DeclaredAccessibility
14 references to DeclaredAccessibility
Microsoft.CodeAnalysis.CSharp (14)
Binder\LockBinder.cs (1)
87if (scopeType is not NamedTypeSymbol { Name: WellKnownMemberNames.LockScopeTypeName, Arity: 0, IsValueType: true, IsRefLikeType: true, DeclaredAccessibility: Accessibility.Public } ||
Binder\Semantics\AccessCheck.cs (2)
248? IsNonNestedTypeAccessible(type.ContainingAssembly, type.DeclaredAccessibility, within) 249: IsMemberAccessible(containingType, type.DeclaredAccessibility, within, null, out unused, compilation, ref useSiteInfo, basesBeingResolved);
Compiler\ClsComplianceChecker.cs (2)
1066bool sawProtected = type.DeclaredAccessibility.HasProtected(); 1078sawProtected = sawProtected || containingType.DeclaredAccessibility.HasProtected();
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (3)
204builderType = ValidateBuilderType(F, builderArgument, returnType.DeclaredAccessibility, isGeneric: false, useMethodLevelBuilder); 285builderType = ValidateBuilderType(F, builderArgument, returnType.DeclaredAccessibility, isGeneric: true, useMethodLevelBuilder); 346(forMethodLevelBuilder || builderType.DeclaredAccessibility == desiredAccessibility))
Symbols\AssemblySymbol.cs (1)
1037return result.DeclaredAccessibility == Accessibility.Public || IsSymbolAccessible(result, this);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
219else if (specifierType.DeclaredAccessibility != Accessibility.Public)
Symbols\Metadata\PE\MetadataDecoder.cs (1)
378candidate.DeclaredAccessibility != Accessibility.Public)
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
62if (result is null || result.DeclaredAccessibility != Accessibility.Public)
Symbols\Source\SourceAssemblySymbol.cs (1)
1895return !obj.IsErrorType() && obj.DeclaredAccessibility == Accessibility.Public;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
107return _underlyingType.DeclaredAccessibility;