static String CodePath = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase;
CodePath = CodePath.Substring(0, CodePath.LastIndexOf(@"\"));
string path = CodePath + "\config\info.xml";
我用这种方式 为啥 类、结构或接口成员声明中的标记无效
之前是这样写的
//string path = Directory.GetCurrentDirectory() + "\config\info.xml";