CodeQL library for C#
Search

Member predicate ConstructorInitializer::getConstructor

Gets the constructor that this initializer call belongs to. For example, the initializer call base() on line 7 belongs to the constructor B on line 6 in

class A
{
    public A() { }
}

class B : A
{
    public B() : base() { }
}
Constructor getConstructor()