示例#1
0
 public void Configure(BindingContext context)
 {
     context.bind( rule => rule.typeToBind = typeof(EmptyInterface), typeof(DerievedFromEmptyInterface));
 }
示例#2
0
 public void Configure(BindingContext context)
 {
     context.bind(rule => rule.markedWith = new ParametrizedWithEnumQualifier(ParametrizedWithEnumQualifier.EnumExample.B), typeof(OtherInterfaceImplementation));
 }
示例#3
0
 public void Configure(BindingContext context)
 {
     context.bind(rule => rule.typeToBind = typeof(EmptyInterface), exampleInstance);
 }