C# Class Ninject.Selection.Heuristics.SpecificConstructorSelector

Constructor selector that selects the constructor matching the one passed to the constructor.
Inheritance: Ninject.Components.NinjectComponent, IConstructorScorer
Show file Open project: ninject/Ninject

Public Methods

Method Description
Score ( IContext context, ConstructorInjectionDirective directive ) : int

Gets the score for the specified constructor.

SpecificConstructorSelector ( ConstructorInfo constructorInfo ) : System.Reflection

Initializes a new instance of the SpecificConstructorSelector class.

Method Details

Score() public method

Gets the score for the specified constructor.
public Score ( IContext context, ConstructorInjectionDirective directive ) : int
context IContext The injection context.
directive ConstructorInjectionDirective The constructor.
return int

SpecificConstructorSelector() public method

Initializes a new instance of the SpecificConstructorSelector class.
public SpecificConstructorSelector ( ConstructorInfo constructorInfo ) : System.Reflection
constructorInfo System.Reflection.ConstructorInfo The constructor info of the constructor that shall be selected.
return System.Reflection