Пример #1
0
 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);
 }
Пример #2
0
 public static void Do(Green first, Red second)
 {
     //Green, Green
     GreenRed = true; //just for tests
 }
Пример #3
0
 public static void Do(Red first, Green second)
 {
     //Red, Green
     RedGreen = true; //just for tests
 }
Пример #4
0
 public string Prosess(Green first, Green second)
 {
     return first.ColorGreen + " " + second.ColorGreen;
 }
Пример #5
0
 public string Prosess(Blue first, Green second)
 {
     return first.ColorBlue + " " + second.ColorGreen;
 }
Пример #6
0
 public void Process(Green colorOne, Red colorTwo)
 {
     LastProcess = TypeOfProcess.GreenAndRed;
 }
Пример #7
0
 public void Process(Green colorOne, Green colorTwo)
 {
     LastProcess = TypeOfProcess.GreenAndGreen;
 }
Пример #8
0
 public void Process(Red colorOne, Green colorTwo)
 {
     LastProcess = TypeOfProcess.RedAndGreen;
 }
Пример #9
0
 public static void Do(Red first, Green second)
 {
     //Red, Green
     RedGreen = true; //just for tests
 }
Пример #10
0
 public static void Do(Green first, Red second)
 {
     //Green, Green
     GreenRed = true; //just for tests
 }
Пример #11
0
 public void Process(Green colorOne, Red colorTwo)
 {
     LastProcess = TypeOfProcess.GreenAndRed;
 }
Пример #12
0
 public void Process(Red colorOne, Green colorTwo)
 {
     LastProcess = TypeOfProcess.RedAndGreen;
 }
Пример #13
0
 public void Process(Green colorOne, Green colorTwo)
 {
     LastProcess = TypeOfProcess.GreenAndGreen;
 }
Пример #14
0
 public string Prosess(Green first, Green second)
 {
     return(first.ColorGreen + " " + second.ColorGreen);
 }
Пример #15
0
 public string Prosess(Blue first, Green second)
 {
     return(first.ColorBlue + " " + second.ColorGreen);
 }