| ServiceContainerSelectConstructor Method |
Selects the constructor to be used for activating the given type.
Namespace: DigitalRune.ServiceLocationAssembly: DigitalRune.ServiceLocation (in DigitalRune.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.13596)
Syntax protected virtual ConstructorInfo SelectConstructor(
Type type
)
Protected Overridable Function SelectConstructor (
type As Type
) As ConstructorInfo
protected:
virtual ConstructorInfo^ SelectConstructor(
Type^ type
)
abstract SelectConstructor :
type : Type -> ConstructorInfo
override SelectConstructor :
type : Type -> ConstructorInfo
Parameters
- type
- Type: SystemType
The type to be activated.
Return Value
Type:
ConstructorInfoThe constructor that should be used.
Remarks Notes to Inheritors: This method can be overridden in derived classes
if a certain strategy for choosing the constructor should be applied. The base
implementation chooses the constructor with the max number of parameters.
See Also