Esempio n. 1
0
        public void use()
        {
            var wildDog        = new WildDog();
            var wildDogAdapter = new WildDogAdapter(wildDog);

            var hunter = new Hunter();

            hunter.Hunt(wildDogAdapter);
        }
Esempio n. 2
0
 public WildDogAdapter(WildDog dog)
 {
     this.mDog = dog;
 }