摘要:
引言: 系统越来越大,配置文件越来越多。之前一直采用直接从xml文件里读取的方式: XmlDocument doc = new XmlDocument(); string fileName = Application.StartupPath+@"\Settings\SystemConfig.xml"; doc.Load(fileName); XmlNode SystemIDXml = doc.SelectSingleNode(@"ROOT/SystemID"); return SystemIDXml .InnerText.Trim(); 使用时... 阅读全文