CodeQL library for C#
codeql/csharp-all 0.8.11-dev (changelog, source)
Search

Member predicate Modifiable::isEffectivelyPrivate

Holds if this declaration is effectively private. A declaration is considered effectively private if it can only be referenced from

  • the declaring and its nested types, similarly to private declarations, and
  • the enclosing types.

Note that explicit interface implementations are also considered effectively private if the implemented interface is itself effectively private. Finally, private protected members are not considered effectively private, because they can be overridden within the declaring assembly.

predicate isEffectivelyPrivate()