示例#1
0
        public static RuleParameter Create(Rule rule, XmlNode node)
        {
            RuleParameter para = new RuleParameter();

            para.Identifier = node.Attributes["identifier"].Value;        // exactly one
            para.Class      = node.SelectSingleNode("//class").InnerText; // exactly one
            return(para);
        }
示例#2
0
        public static ParameterList Create(Rule rule, XmlNodeList nodeList)
        {
            ParameterList paraList = new ParameterList();

            foreach (XmlNode node in nodeList)
            {
                paraList.List.Add(RuleParameter.Create(rule, node));
            }
            return(paraList);
        }