コード例 #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;
 }