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

Member predicate Getter::trivialGetterField

Gets the field used in the trival implementation of this getter, if any. For example, the field p in

public class C {
  int p;
  public int P {
    get { return p; }
    set { p = value; }
  }
}
Field trivialGetterField()