示例#1
0
 public static void Main(string[] args)
 {
     string path = @"C:\Users\ybrad\OneDrive\Desktop\IT 514\AdapterPatternDemo\Products1.csv";
     FileGateway aGateway = new FileGateway();
     NewFileGateWay newGateWay = new NewFileGateWay(aGateway);
     newGateWay.GetProducts(path);
     ProductCatalog aCatalog = new ProductCatalog();
     aCatalog.Print(newGateWay);
 }
 public NewFileGateWay(FileGateway oldFileGateWay)
 {
     this.lastGateWay = oldFileGateWay;
 }