IConstructorResolutionBehaviorGetConstructor Method

Simple Injector
Gets the given implementationType's constructor that can be used by the container to create that instance.

Namespace:  SimpleInjector.Advanced
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 4.10.2
Syntax

ConstructorInfo GetConstructor(
	Type implementationType
)

Parameters

implementationType
Type: SystemType
Type of the implementation to find a suitable constructor for.

Return Value

Type: ConstructorInfo
The ConstructorInfo. This method never returns null.
Exceptions

ExceptionCondition
ActivationExceptionThrown when no suitable constructor could be found.
See Also

Reference