Ninject - Multiple Classes Using Single Interface (more than one matching bindings are available)
问题 If I have an implementation of Human and Dog class which uses the IPerson interface and HumanFood and DogFood class using the IFood interface. How can I switch from using HumanFood to DogFood and Human to Dog in my main function? Currently the way this is written it is giving me a "more than one matching bindings are available" error. Thanks! public class Bindings : NinjectModule { public override void Load() { this.Bind<IFood>().To<HumanFood>(); this.Bind<IFood>().To<DogFood>(); this.Bind