Guest User

Untitled

a guest
May 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. [PluginFamily("Default")]
  2. public interface IWidget1
  3.  
  4. [Pluggable("Default")]
  5. public class Widget1 : IWidget1
  6.  
  7. [PluginFamily("Default")]
  8. public interface IAnotherWidget
  9.  
  10. [Pluggable("Default")]
  11. public class AnotherWidget : IAnotherWidget
  12. {
  13. public AnotherWidget(IWidget widget)
  14. {
  15. ...
  16. }
  17. }
  18.  
  19. IAnotherWidget _anotherWidget = ObjectFactory.GetInstance<IAnotherWidget>();
Add Comment
Please, Sign In to add comment