static void Main(string[] args) { var red = new Red(); var green = new Green(); Console.WriteLine(red.ToString()); Console.WriteLine(green.ToString()); // Console.WriteLine(red.GetMyType()); // ColorsProcessor.Process(red, green); }
public void RunProcessing(Red red, IProcessor processor) { processor.Process(red, this); }
public static void Do(Green first, Red second) { //Green, Green GreenRed = true; //just for tests }
public static void Do(Red first, Green second) { //Red, Green RedGreen = true; //just for tests }
public static void Do(Red first, Red second) { //Red, Red RedRed = true; //just for tests }
public string Prosess(Red first, Blue second) { return first.ColorRed + " " + second.ColorBlue; }
public string Prosess(Red first, Red second) { return first.ColorRed + " "+ second.ColorRed; }
public void Process(Green colorOne, Red colorTwo) { LastProcess = TypeOfProcess.GreenAndRed; }
public void Process(Red colorOne, Green colorTwo) { LastProcess = TypeOfProcess.RedAndGreen; }
public void Process(Red colorOne, Red colorTwo) { LastProcess = TypeOfProcess.RedAndRed; }
public string Prosess(Red first, Red second) { return(first.ColorRed + " " + second.ColorRed); }
public string Prosess(Red first, Blue second) { return(first.ColorRed + " " + second.ColorBlue); }