상속: IColored
예제 #1
0
 public void RunProcessing(Blue blue, IProcessor processor)
 {
     //uncomment if we can process(blue, red)
     //processor.Process(blue, this);
     throw new ArgumentException("Can't process (Blue, Red)");
 }
예제 #2
0
 public string Prosess(Blue first, Green second)
 {
     return first.ColorBlue + " " + second.ColorGreen;
 }
예제 #3
0
 public void RunProcessing(Blue blue, IProcessor processor)
 {
     processor.Process(blue, this);
 }
예제 #4
0
 public string Prosess(Red first, Blue second)
 {
     return first.ColorRed + " " + second.ColorBlue;
 }
예제 #5
0
 public string Prosess(Blue first, Green second)
 {
     return(first.ColorBlue + " " + second.ColorGreen);
 }
예제 #6
0
 public string Prosess(Red first, Blue second)
 {
     return(first.ColorRed + " " + second.ColorBlue);
 }
예제 #7
0
 public void RunProcessing(Blue blue, IProcessor processor)
 {
     //uncomment if we can process(blue, red)
     //processor.Process(blue, this);
     throw new ArgumentException("Can't process (Blue, Red)");
 }
예제 #8
0
 public void RunProcessing(Blue blue, IProcessor processor)
 {
     processor.Process(blue, this);
 }