Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. interface IFactory<TConfiguration,TProblem>
  2. where TProblem: IProblem
  3. where TConfiguration: IConfiguration
  4. {
  5. TProblem Create(TConfiguration config);
  6. }
  7.  
  8. class Factory<TConfiguration,TProblem>: IFactory<TConfiguration,TProblem>
  9. where TProblem: IProblem
  10. where TConfiguration: IConfiguration
  11. {
  12. TProblem Create(TConfiguration config)
  13. {
  14. var problem = new Problem(config);
  15. ...
  16. return problem;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement