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

Member predicate Accessor::getAnAccessModifier

Gets an explicit access modifier of this accessor, if any. For example, the get accessor on line 3 has no access modifier and the set accessor on line 4 has a private access modifier in

class C {
  public int P {
    get;
    private set;
  }
}
AccessModifier getAnAccessModifier()