CodeQL library for C#
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 overriden within the declaring assembly.

predicate isEffectivelyPrivate()