Inheritance: IColored
Example #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)");
 }
Example #2
0
 public string Prosess(Blue first, Green second)
 {
     return first.ColorBlue + " " + second.ColorGreen;
 }
Example #3
0
 public void RunProcessing(Blue blue, IProcessor processor)
 {
     processor.Process(blue, this);
 }
Example #4
0
 public string Prosess(Red first, Blue second)
 {
     return first.ColorRed + " " + second.ColorBlue;
 }
Example #5
0
 public string Prosess(Blue first, Green second)
 {
     return(first.ColorBlue + " " + second.ColorGreen);
 }
Example #6
0
 public string Prosess(Red first, Blue second)
 {
     return(first.ColorRed + " " + second.ColorBlue);
 }
Example #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)");
 }
Example #8
0
 public void RunProcessing(Blue blue, IProcessor processor)
 {
     processor.Process(blue, this);
 }