日期:2014-05-17  浏览次数:20577 次

如何读取这样的配置文件
本帖最后由 chai1338 于 2013-06-28 09:45:38 编辑

根据上图我做了个功能根据id的集合返回对应的SKU跟中文名称

 sku_ = null;
 name_ = null;
 List<int> list = new List<int>();
            for (int i = 0; i < list.Count; i++)
            {
                switch (list[i])
                {
                     case 180079:
                        sku_ += "A1"; name_ += "|LED_PC2A ESC飞机/直升机";
                        break;
                    case 180080:
                        sku_ += "A2"; name_ += "|LED_PC2B ESC船";
                        break;
                    case 180081:
                        sku_ += "A3"; name_ += "|汽车ESC LED_PC2C";
                        break;
                    case 184521:
                        sku_ += "B1"; name_ += "|COMBO-SC-C1";
                        break;
                    case 184522: