static void Main() { var first = new Adaptee (); Console.Write ("Before the new standard: "); first.ExecuteClassSpecificAction (); ITarget second = new Adapter (); Console.WriteLine ("\nMoving to the new standard"); second.ExecuteInterfaceSpecificAction () ; }
static void Main() { var first = new Adaptee(); Console.Write("Before the new standard: "); first.ExecuteClassSpecificAction(); ITarget second = new Adapter(); Console.WriteLine("\nMoving to the new standard"); second.ExecuteInterfaceSpecificAction(); }