Ejemplo n.º 1
0
 private void SelectedAdapter(object p)
 {
     if (p != null)
     {
         AdapterObject obj = p as AdapterObject;
         CurrentAdapter = obj;
     }
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            //class level
            ITarget t1 = new Adapter();
            Adaptee t2 = new Adapter();

            t1.Request();
            t2.SpecificReques();

            //object level
            Target t3 = new AdapterObject();

            t3.Request();
        }