.Net
拖拽文件夹到文本框TextBox
private void textBox1_DragDrop(object sender, DragEventArgs e) { textBox1.Text = ((System.Ar
C# 直接打开文件(默认程序)
File.WriteAllText("log.txt", log); Process.Start("log.txt");
去掉XML中的处理指令
XDocument xDoc = XDocument.Load(xmlFile); var xpis = xDoc.DescendantNodes().OfType<XProcessingInstruction>(); xpis.Remove();