CodeQL library for C#
codeql/csharp-all 2.0.1-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()