static void Main(string[] args) { ITarget objectA = new NormalTarget(); objectA.ProcessRequest(); //Adapter class is used to convert the old method to new specification ITarget objectB = new Adapter(); objectB.ProcessRequest(); Console.Read(); }
static void Main(string[] args) { ITarget objectA = new NormalTarget(); objectA.ProcessRequest(); //Adapter class is used to convert the old method to new specification ITarget objectB = new Adapter(); objectB.ProcessRequest(); Console.Read(); }