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

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()