摘要: <?xml version="1.0" encoding="utf-8" standalone="no"?><info> <company id=""> </company></info> //判断文件是否存在 if (File.Exists(filePath)) { XmlDocument xml 阅读全文
posted @ 2020-06-28 22:26 liangyuwen 阅读(85) 评论(0) 推荐(0) 编辑
摘要: C# 获取程序路径的主要方法和区别如下: ```csharp//1.获取模块的完整路径(即程序名+.vshost.exe)是visual studio宿主应用程序,vs运行调试时是打开的其实是这个文件,这个程序可以让vs跟踪调试信息。 string path1 = System.Diagnostic 阅读全文
posted @ 2020-06-28 22:24 liangyuwen 阅读(271) 评论(0) 推荐(0) 编辑