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

Member predicate Overridable::getAnImplementor

Gets a member that immediately implements this interface member, if any.

The type t is a type that implements the interface type in which this member is declared, in such a way that the result is the implementation of this member.


interface I { void M(); }

class A { public void M() { } }

class B : A, I { }

class C : A, I { new public void M() }

In the example above, the following (and nothing else) holds: I.M.getAnImplementor(B) = A.M and I.M.getAnImplementor(C) = C.M.

Overridable getAnImplementor(ValueOrRefType t)