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

Member predicate Property::getInitializer

Gets the initial value of this property, if any. For example, the initial value of P on line 2 is 20 in

class C {
  public int P { get; set; } = 20;
}
Expr getInitializer()