private RuleManager() { XmlData data = XmlTool.LoadFile(ERuleKey.RuleConfigUrl); RuleRepertory = new Dictionary <int, CRule>(); foreach (var ruleData in data.Childs) { CRule rule = new CRule(ruleData); RuleRepertory.Add(rule.RuleID, rule); } }