Injector.FindCtor

Finds the most appropriate ctor for use with injection.

Notes: Types that have multiple overloads of a ctor produce undefined behaviour.

You can use Injector.isBuiltinCtor and Injector.isStaticFuncCtor to determine what type of Ctor was chosen.

class Injector
static final
template FindCtor (
T
)

Return Value

Either the type's __ctor, the type's injectionCtor, or NoValidCtor if no appropriate ctor was found.

Meta