// Method injection
 public void DoStuff(C1 c1, C2 c2, C3 c3)
 {
    
     c1.DoStuff();
     c2.DoStuff();
     c3.DoStuff();
 }
예제 #2
0
            public void DoStuff(C1 first, C2 second, C3 third)
            {
                c1 = first;
                c2 = second;
                c3 = third;

                c1.DoStuff();
                c2.DoStuff();
                c3.DoStuff();
            }
예제 #3
0
 public void DoStuff()
 {
     c1.DoStuff();
     c2.DoStuff();
     c3.DoStuff();
 }