示例#1
0
文件: Program.cs 项目: lyfb/cms-1
        private static void Test()
        {
            PropertyRule rule = new PropertyRule();

            rule.Add("title", "^title$");
            rule.Add("content", "^content$");


            DataPack pack = new DataPack(rule, "");


            foreach (KeyValuePair <string, string> pair in pack)
            {
                Console.WriteLine(pair.Key + "->" + pair.Value);
            }
        }
示例#2
-2
        private static void Test()
        {
            PropertyRule rule = new PropertyRule();
            rule.Add("title", "^title$");
            rule.Add("content", "^content$");

            DataPack pack = new DataPack(rule,"");

            foreach (KeyValuePair<string, string> pair in pack)
            {

                Console.WriteLine(pair.Key + "->" + pair.Value);
            }
        }