Ninject 2.0 Constructor parameter - how to set when default constructor is also present?

String is not self-bindable, so it isn't counted as a dependency. When the . Ctor scorer runs, it will score the default .

Ctor and the string . Ctor the same since the dependency can't be resolved. You can fix this by attributing your string .ctor.

String is not self-bindable, so it isn't counted as a dependency. When the . Ctor scorer runs, it will score the default .

Ctor and the string . Ctor the same since the dependency can't be resolved. You can fix this by attributing your string .

Ctor Inject public TestClass(string message){...} and your code will work fine.

Thanks a lot Ian! – Stuart Oct 4 '09 at 19:43 I just committed a patch earlier today that should have also taken care of this issue without the Inject attribute. Parameters are now scored when evaluating which .

Ctor to use. – Ian Davis Oct 5 '09 at 22:27.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions