예제 #1
0
        static void Main(string[] args)
        {
            OldSystem oldSystem = new OldSystem();
            MySocket  mmm       = new MySocket();
            Adapter   adapt     = new Adapter(oldSystem);
            Adapter   adap      = new Adapter(mmm);

            ChangeLapTop(adapt);
            ChangeLapTops(adap);
        }
예제 #2
0
 public Adapter(OldSystem adaptee)
 {
     _adaptee = adaptee;
 }