摘要:
//根据当前程序集的路径,加载xml文件 XDocument xdoc = XDocument.Load(@"d:\documents\visual studio 2010\Projects\Demo\第二题\MyLog4NetMain\log4net.xml"); //获取xml根节点的值 string dllPath = xdoc.Root.Attribute("path").Value; string dllType = xdoc.Root.Attribute("type").Value; ... 阅读全文