08 2013 档案

C#中对 XML节点进行添加,删除,查找和删除操作
摘要:从网上整理所得XMLDocument来操作XML比较简单,虽然有时效率不是很高。代码如下已知有一个XML文件(bookstore.xml)如下: Oberon's Legacy Corets, Eva 5.95 1、往节点中插入一个节点: XmlDocument xmlDoc=new XmlDocument(); xmlDoc.Load("bookstore.xml"); XmlNode root=xmlDoc.SelectSingleNode("bookstore");//查找 XmlElement xe1=xmlDoc.CreateEleme 阅读全文

posted @ 2013-08-14 10:41 AlexGeng 阅读(673) 评论(0) 推荐(0)

VS2010在C#头文件中添加文件注释的方法(转)
摘要:步骤:1.VS2010 中找到(安装盘符以D盘为例)D:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\2052\Class.zip2.在Class.cs 文件中原有代码如下:using System;using System.Collections.Generic;$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;$endif$using System.Text;namespace $ro 阅读全文

posted @ 2013-08-06 15:12 AlexGeng 阅读(436) 评论(0) 推荐(0)

导航