随笔分类 -  C#学习

C#学习
摘要:一、简单介绍using System.Xml;//初始化一个xml实例XmlDocument xml=new XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/boo... 阅读全文
posted @ 2014-05-02 21:46 菜鸟学CSharp 阅读(479) 评论(0) 推荐(0)
摘要:1 StreamWriter sw = new StreamWriter(@"d:\log.txt",true);2 sw.WriteLine(System.DateTime.Now.ToString() + " " + "This is a test message!")... 阅读全文
posted @ 2014-05-02 07:20 菜鸟学CSharp 阅读(1239) 评论(0) 推荐(0)
摘要:1 public static DataTable ToDataTable(List list) 2 { 3 DataTable result = new DataTable(); 4 if (list.Count > 0) 5... 阅读全文
posted @ 2014-04-13 21:27 菜鸟学CSharp 阅读(1657) 评论(2) 推荐(0)