C# Class Ninject.Selection.Heuristics.SpecificConstructorSelector

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

Méthodes publiques

Méthode 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 méthode

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

SpecificConstructorSelector() public méthode

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.
Résultat System.Reflection