Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class FooAttribute : Attribute {}
- public class BarAttribute : Attribute {}
- public interface IA { ... }
- [Foo]
- public class FooA : IA { ... }
- [Bar]
- public class BarA : IA { ... }
- public class B {
- public B([Foo] IA one, [Bar] IA two) {
- Assert.That(one is FooA);
- Assert.That(two is BarA);
- }
- }
- Bind<IA>().To<FooA>();
- Bind<IA>().To<BarA>();
Add Comment
Please, Sign In to add comment