示例#1
0
文件: Prog.cs 项目: OmaraliA/.NET-
        public List <Category> ReadCategory()
        {
            var categoryStore = new CategoryStore()
            {
                Path = categoryPath
            };
            var categoryList = categoryStore.GetCollection();

            return(categoryList);
        }
示例#2
0
        static void Main(string[] args)
        {
            var categoryStore = new CategoryStore()
            {
                Path = categoryPath
            };
            var categorytList = categoryStore.GetCollection();


            foreach (var item in categorytList)
            {
                Console.WriteLine(item.Id + " " + item.Weight);
            }
        }