CodeQL library for C#
codeql/csharp-all 1.0.3-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()