Click or drag to resize

MostParametersConstructorSelectorSelectConstructorBinding Method

Selects the best constructor from the available constructors.

Namespace:  Autofac.Core.Activators.Reflection
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public BoundConstructor SelectConstructorBinding(
	BoundConstructor[] constructorBindings,
	IEnumerable<Parameter> parameters
)

Parameters

constructorBindings
Type: Autofac.Core.Activators.ReflectionBoundConstructor
Available constructors.
parameters
Type: System.Collections.GenericIEnumerableParameter
Parameters to the instance being resolved.

Return Value

Type: BoundConstructor
The best constructor.

Implements

IConstructorSelectorSelectConstructorBinding(BoundConstructor, IEnumerableParameter)
Exceptions
ExceptionCondition
DependencyResolutionExceptionA single unambiguous match could not be chosen.
See Also