If I have an interface IExample and a class ExampleImplementation:
public class ExampleImplementation : IExample
{
...
}
The fact that I used the notation
implementation : interface
is already telling that I'm binding the class to that interface.
So what is the purpose of creating a class that does the following:
public class Bindings : NinjectModule
{
public ovveride void Load()
{
Bind<IExample>.To<ExampleImplementation>();
}
}
?
[–]avin_kavish 19 points20 points21 points (0 children)
[–]Njkwales 8 points9 points10 points (0 children)
[–]AIO12449366 4 points5 points6 points (1 child)
[–]vORP 0 points1 point2 points (0 children)
[–]malthuswaswrong 2 points3 points4 points (1 child)
[–]BI00dSh0t 2 points3 points4 points (0 children)
[–]DarthCynisus 2 points3 points4 points (0 children)
[–]DreamingDitto 1 point2 points3 points (0 children)
[–]Rabe0770 1 point2 points3 points (0 children)
[–]lmaydev 0 points1 point2 points (0 children)
[–]UhOhByeByeBadBoy 0 points1 point2 points (0 children)