![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
qq1151219115
这个作者很懒,什么都没留下…
展开
-
TreeView Xml
private void XmlOperation_Load(object sender, EventArgs e) { path = AppDomain.CurrentDomain.BaseDirectory + @"NameList.xml"; xml.Load(path);//加载xml文件 bindTvXml(); } /// /// 绑定TreeView /// private void转载 2017-03-25 11:25:57 · 537 阅读 · 0 评论 -
C#如何判断一个本地的XML文件的是格式正确的
命名空间:using System.IO;using System.Xml;方法:bool IsXml(string Path){ StreamReader sr = new StreamReader(Path); string strXml = sr.ReadToEnd(); sr.Close(); sr.Dispose();转载 2017-08-16 13:46:34 · 1945 阅读 · 0 评论 -
C#删除自身
public static void TestForKillMyself() { string bat = @"@echo off :tryagain del %1 if exist %1 goto tryagain del %0"; File.WriteAllText("killme.bat转载 2017-09-13 13:29:59 · 642 阅读 · 0 评论