Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. interface IArgs{
  2. //args stuff
  3. }
  4.  
  5. interface IExample{
  6. void Populate(IArgs);
  7. }
  8.  
  9. class ExampleA : IExample
  10. {
  11. void Populate(IArgs a){
  12. //todo
  13. }
  14. }
  15.  
  16. class ExampleB : IExample
  17. {
  18. void Populate(IArgs b){
  19. //todo
  20. }
  21. }
  22.  
  23. class ExampleC : IExample
  24. {
  25. void Populate(IArgs c){
  26. //todo
  27. }
  28. }
  29.  
  30.  
  31. class MainExampleClass(){
  32. ExampleA classA;
  33. ExampleB classB;
  34. ExampleC classC;
  35. //instantiation and other class stuff
  36. foreach(Data data in dataCollection){
  37. classA.Populate(data);
  38. classB.Populate(data);
  39. classC.Populate(data);
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement