摘要: 窗体的Timer和Tread 阅读全文
posted @ 2013-11-20 09:35 幸运的程序员 阅读(3596) 评论(0) 推荐(0) 编辑
摘要: Win7 + VisualStudio2010 + .NetFramework 4.0 + MVC3.0第一步,首先从官网下载dllhttp://logging.apache.org/log4net/index.html ,在项目添加引用log4net.dll第二步,log4net配置配置单独写一个配置文件log4net.config 日志可以写入各种数据库也可以各种方式写入文件,详细配置看官网第三步,修改AssemblyInfo.cs,在最后添加一行// 日志组件配置[assembly: log4... 阅读全文
posted @ 2013-08-05 16:27 幸运的程序员 阅读(307) 评论(0) 推荐(0) 编辑
摘要: SVN使用原则,SVN注意事项 阅读全文
posted @ 2013-08-02 11:14 幸运的程序员 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 重写Streampublic class CatchTextStream : Stream { private Stream output; public CatchTextStream(Stream s) { output = s; } public override bool CanRead { get { return output.CanRead; } } public override bool CanSeek ... 阅读全文
posted @ 2013-08-01 17:05 幸运的程序员 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: 今天遇到要在config文件中配置一个包含引号,尖括号的特殊字符的问题,config文件不支持转义字符,我开始发动自己的脑子想,想出一个蹩脚的方法,用其他的字符替换比如&,?,!,问题倒是解决了但是感觉很丑。然后去网上搜正解,XML文件支持THML的ASCII实体,比如<表示那么应该这样写 阅读全文
posted @ 2013-08-01 16:19 幸运的程序员 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 第一次用WCF配置有点麻烦,看到这篇文章总结的不错就贴过来分享下!原文链接http://goneale.com/2010/04/01/error-connecting-to-was-enabled-net-tcp-wcf-service-hosted-through-iis/Error connecting to WAS-enabled Net Tcp WCF Service Hosted Through IISAs you may be aware, setting up a TCP-based full duplex WCF service can have some pretty awe 阅读全文
posted @ 2012-02-15 18:38 幸运的程序员 阅读(476) 评论(0) 推荐(0) 编辑