public void ShowEmployeeList()
Console.WriteLine("Return List of all the Employees from 'BillingSystem'");
class ThirdPartyBillingSystem
public string ShowEmployeeList()
return "Return List of all the Employees from 'ThirdPartyBillingSystem'";
class BillingSystemAdapter : IAdapter
private readonly BillingSystem _billingSystem;
public BillingSystemAdapter()
_billingSystem = new BillingSystem();
_billingSystem.ShowEmployeeList();
class ThirdPartyBillingSystemAdapter : IAdapter
private readonly ThirdPartyBillingSystem _thirdPartyBillingSystem;
public ThirdPartyBillingSystemAdapter()
_thirdPartyBillingSystem = new ThirdPartyBillingSystem();
Console.WriteLine(_thirdPartyBillingSystem.ShowEmployeeList() + "\n");
public static void Main()
adapter = new BillingSystemAdapter();
adapter = new ThirdPartyBillingSystemAdapter();