2011年8月14日
摘要: using System;using System.Collections.Generic;using System.Text; namespace MyDelegate{ class Program { static void Main(string[] args) { List<string> m_liName=new List<string>(); m_liName.Add("sadi"); m_liName.Add("pothik"); m_liName.Add("shiman"); m_liName. 阅读全文
posted @ 2011-08-14 23:17 程序诗人 阅读(248) 评论(0) 推荐(0)
摘要: 最近项目中使用到了Log4Net,于是便做了一个小记,来记录下简单的使用情况,具体的,需要等到以后去挖掘。首先就是让Console显示Log4Net日志记录情况,这个不需要什么具体的配置,只需要下载log4net,然后引用相应的dll文件即可。你可以通过http://logging.apache.org/log4net/download.html去下载Log4Net,具体代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using log4net;using log4ne 阅读全文
posted @ 2011-08-14 22:48 程序诗人 阅读(906) 评论(0) 推荐(0)