コード例 #1
0
ファイル: TurkeyAdapter.cs プロジェクト: smolensky/patterns
 public TurkeyAdapter(ITurkey turkey)
 {
     _turkey = turkey;
 }
コード例 #2
0
 public TurkeyAdpter(ITurkey turkey)
 {
     this.Turkey = turkey;
 }
コード例 #3
0
 public TurkeyDuckAdapter(ITurkey turkey)
 {
     Turkey = turkey;
 }
コード例 #4
0
 public TurkeyAdapter(ITurkey turkey)
 {
     _turkey = turkey;
 }
コード例 #5
0
ファイル: Program.cs プロジェクト: pgproject/DesignPattern
 static void TestTurkey(ITurkey turkey)
 {
     turkey.Bubble();
     turkey.Fly();
 }
コード例 #6
0
 public void CookTurkey(ITurkey turkey)
 {
     Console.WriteLine("Im cooking this turkey: " + turkey.Flavor());
 }
コード例 #7
0
 public TurkeyAdapter(ITurkey turkey)
 {
     Console.WriteLine("Turkey adapter Says...");
     _turkey = turkey;
 }
コード例 #8
0
 public TurkeyAdapter(ITurkey someTurkey)
 {
     _someTurkey = someTurkey;
 }
コード例 #9
0
 public TurkeyTom(ITurkey turkey, ILettuce lettuce, ITomato tomato, IVinaigrette vinaigrette)
 {
 }
コード例 #10
0
 public DuckAdapter(ITurkey turkey)
 {
     _turkey = turkey;
 }
コード例 #11
0
 public static void TestTurkey(ITurkey t)
 {
     t.Gobble();
     t.Fly();
 }
コード例 #12
0
 public TurkeyAdapter(ITurkey t)
 {
     _turkey = t;
 }
コード例 #13
0
 public TurkeyAdapter(ITurkey _turkey)
 {
     turkey = _turkey;
 }
コード例 #14
0
 public void CookTurkey(ITurkey turkey)
 {
     Console.WriteLine("Im cooking this turkey: " + turkey.Flavor());
 }
コード例 #15
0
 public TurkeyAdapter(ITurkey turkey)
 {
     _turkey = turkey ?? throw new ArgumentNullException(nameof(turkey));
 }
コード例 #16
0
ファイル: Program.cs プロジェクト: smolensky/patterns
 static void TestTurkey(ITurkey turkey)
 {
     turkey.Gobble();
     turkey.Fly();
 }
コード例 #17
0
 private static void TestTurkey(ITurkey turkey)
 {
     turkey.Gobble();
     turkey.Fly();
 }
コード例 #18
0
 // Constructor
 public TurkeyToDuckAdapter(ITurkey turkey)
 {
     this._turkey = turkey;
 }
コード例 #19
0
 static void TestDuck(ITurkey turkeyInterface)
 {
     turkeyInterface.Gobble();
     turkeyInterface.Fly();
 }
コード例 #20
0
 public TurkeyObjectAdapter(ITurkey turkey)
 {
     this._turkey = turkey;
 }
コード例 #21
0
 public ClassAdapter(ITurkey turkey)
 {
     this.turkey = turkey;
 }
コード例 #22
0
 public TurkeyDuckAdapter(ITurkey turkeyDuckWannaBe)
 {
     turkey = turkeyDuckWannaBe;
 }
コード例 #23
0
 public DuckAdapter(ITurkey turkey)
 {
     _turkey = turkey;
 }
コード例 #24
0
 public TurkeyAdapter(ITurkey turkey)
 {
     this.turkey = turkey;
 }
コード例 #25
0
 public static void TurkeyClient(ITurkey turkey)
 {
     Console.WriteLine(turkey.Gobble());
     Console.WriteLine(turkey.Fly());
 }
コード例 #26
0
ファイル: TurkeyTom.cs プロジェクト: kkozmic/PaulTest
 public TurkeyTom(ITurkey turkey, ILettuce lettuce, ITomato tomato, IVinaigrette vinaigrette)
 {
 }
コード例 #27
0
 public TurkeyDuckAdapter(ITurkey turkeyDuckWannaBe)
 {
     turkey = turkeyDuckWannaBe;
 }
コード例 #28
0
 public TurkeyAdapter(ITurkey turkey)
 {
     this.turkey = turkey;
 }
コード例 #29
0
 static void TestTurkey(ITurkey turkey)
 {
     turkey.FLy();
     turkey.Gobble();
 }