Beispiel #1
0
        public void Using()
        {
            var wildDog        = new WildDog();
            var wildDogAdapter = new WildDogAdapter(wildDog);
            var hunter         = new Hunter();

            hunter.Hunt(wildDogAdapter);
        }
Beispiel #2
0
 public WildDogAdapter(WildDog dog)
 {
     this.dog = dog;
 }