コード例 #1
0
        static void Main(string[] args)
        {
            User         u = new User();
            StandartJack j = new StandartJack();

            u.Listen(j);
            Bluetooth b     = new Bluetooth();
            IWire     bWire = new BluetoothToWireAdapter(b);

            u.Listen(bWire);

            Console.Read();
        }
コード例 #2
0
 public BluetoothToWireAdapter(Bluetooth b)
 {
     bluetooth = b;
 }