コード例 #1
0
        public ControllerRuleGroup Load(string expertKey){
            var path = "controller.rules/" + expertKey + ".rules.xml"; 

            var expert = new ControllerRuleGroup();
            var xml = PathResolver.ReadXml(path, null,
                                           new ReadXmlOptions{ApplyXslt = true, Merge = true});
            expert.LoadFromXml(XElement.Parse(xml));
            return expert;
        }
コード例 #2
0
 public static ControllerRuleGroup FromXml(XElement xml){
     var result = new ControllerRuleGroup();
     result.LoadFromXml(xml);
     return result;
 }