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

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