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)"); }
public string Prosess(Blue first, Green second) { return first.ColorBlue + " " + second.ColorGreen; }
public void RunProcessing(Blue blue, IProcessor processor) { processor.Process(blue, this); }
public string Prosess(Red first, Blue second) { return first.ColorRed + " " + second.ColorBlue; }
public string Prosess(Blue first, Green second) { return(first.ColorBlue + " " + second.ColorGreen); }
public string Prosess(Red first, Blue second) { return(first.ColorRed + " " + second.ColorBlue); }