Inheritance: IColored
コード例 #1
0
ファイル: Colors.cs プロジェクト: Confirmit/Students
 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)");
 }
コード例 #2
0
ファイル: ColorProcessor.cs プロジェクト: Confirmit/Students
 public string Prosess(Blue first, Green second)
 {
     return first.ColorBlue + " " + second.ColorGreen;
 }
コード例 #3
0
ファイル: Colors.cs プロジェクト: Confirmit/Students
 public void RunProcessing(Blue blue, IProcessor processor)
 {
     processor.Process(blue, this);
 }
コード例 #4
0
ファイル: ColorProcessor.cs プロジェクト: Confirmit/Students
 public string Prosess(Red first, Blue second)
 {
     return first.ColorRed + " " + second.ColorBlue;
 }
コード例 #5
0
ファイル: ColorProcessor.cs プロジェクト: taler0n/Students
 public string Prosess(Blue first, Green second)
 {
     return(first.ColorBlue + " " + second.ColorGreen);
 }
コード例 #6
0
ファイル: ColorProcessor.cs プロジェクト: taler0n/Students
 public string Prosess(Red first, Blue second)
 {
     return(first.ColorRed + " " + second.ColorBlue);
 }
コード例 #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)");
 }
コード例 #8
0
 public void RunProcessing(Blue blue, IProcessor processor)
 {
     processor.Process(blue, this);
 }