示例#1
0
        static void Main(string[] args)
        {
            Triceratops triceratops = new Triceratops();
            var         child       = ChildCreator.CreateChild(new TriceratopsToMammalAdapter(triceratops));

            child.Cry();
        }
示例#2
0
        public static void AdapterExample()
        {
            var triceratops = new Triceratops();

            var child = ChildCreator.CreateChild(new TriceratopsToMammalAdapter(triceratops));

            child.Cry();
        }