随笔分类 -  .Net/C#

简单C#写日志
摘要:public static void WriteLogFile(string strLog) { string strPath = System.AppDomain.CurrentDomain.BaseDirectory + http://www.cnblogs.com/haiyu/admin/file://\\zztblog.txt; FileStream fs = new FileStream(strPath, FileMode.OpenOrCreate, FileAccess.Write); StreamWriter m_streamWriter = new StreamWriter(. 阅读全文

posted @ 2011-05-02 20:42 大鱼,大禹 阅读(400) 评论(0) 推荐(0)

对象集合序列化与反序列化
摘要:一、序列化///<summary>///序列化对象///</summary>///<typeparamname="T">对象类型</typeparam>///<paramname="t">对象</param>///<returns></returns>publicstaticstringSerializ... 阅读全文

posted @ 2009-12-08 22:49 大鱼,大禹 阅读(252) 评论(0) 推荐(0)

导航