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 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 string Prosess(Green first, Green second) { return first.ColorGreen + " " + second.ColorGreen; }
public string Prosess(Blue first, Green second) { return first.ColorBlue + " " + second.ColorGreen; }
public void Process(Green colorOne, Red colorTwo) { LastProcess = TypeOfProcess.GreenAndRed; }
public void Process(Green colorOne, Green colorTwo) { LastProcess = TypeOfProcess.GreenAndGreen; }
public void Process(Red colorOne, Green colorTwo) { LastProcess = TypeOfProcess.RedAndGreen; }
public string Prosess(Green first, Green second) { return(first.ColorGreen + " " + second.ColorGreen); }
public string Prosess(Blue first, Green second) { return(first.ColorBlue + " " + second.ColorGreen); }