Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public Adapter(MySocket m)
 {
     _adapt = m;
 }