Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface IArgs{
- //args stuff
- }
- interface IExample{
- void Populate(IArgs);
- }
- class ExampleA : IExample
- {
- void Populate(IArgs a){
- //todo
- }
- }
- class ExampleB : IExample
- {
- void Populate(IArgs b){
- //todo
- }
- }
- class ExampleC : IExample
- {
- void Populate(IArgs c){
- //todo
- }
- }
- class MainExampleClass(){
- ExampleA classA;
- ExampleB classB;
- ExampleC classC;
- //instantiation and other class stuff
- foreach(Data data in dataCollection){
- classA.Populate(data);
- classB.Populate(data);
- classC.Populate(data);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement