随笔分类 -  C#

C#如何控制方法的执行时间,超时则强制退出方法执行
摘要:转自:http://outofmemory.cn/code-snippet/1762/C-how-control-method-zhixingshijian-chaoshi-ze-force-quit-method-execution/comments1 有时候我们需要控制方法的执行时间,如果超时则 阅读全文

posted @ 2016-05-11 17:24 多远才是未来 阅读(6866) 评论(1) 推荐(0)

读取Excel列内容
摘要:http://blog.sina.com.cn/s/blog_6e001be701016yi8.html 阅读全文

posted @ 2016-03-29 14:24 多远才是未来 阅读(130) 评论(0) 推荐(0)

vs运行代码版本不一致删除缓存
摘要:C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files 阅读全文

posted @ 2016-03-11 14:55 多远才是未来 阅读(328) 评论(0) 推荐(0)

类型初始值设定项引发异常
摘要:public class ClientExceptionUtil{ /// /// 日志控制对象 /// public static readonly ILog logger = LocalLogManage.GetLogManager();错误原因为:ClientExceptionUtil类的... 阅读全文

posted @ 2015-09-30 17:09 多远才是未来 阅读(558) 评论(0) 推荐(0)

datagridview 点击列标题排序
摘要:datagridview 点击列标题排序装载:作者:大亨梦 出处:http://www.cnblogs.com/fer-team/ 程序员知识库:http://www.5uzh.com 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追... 阅读全文

posted @ 2015-09-09 16:20 多远才是未来 阅读(581) 评论(0) 推荐(0)

sql注入原理
摘要:http://blog.csdn.net/stilling2006/article/details/8526458 阅读全文

posted @ 2015-07-15 16:31 多远才是未来 阅读(129) 评论(0) 推荐(0)

c# 消息
摘要:http://blog.csdn.net/work888study/article/details/9095949 阅读全文

posted @ 2014-12-12 11:22 多远才是未来 阅读(122) 评论(0) 推荐(0)

VisualStudio开发伴侣ReSharper配置及用法
摘要:http://tommyhu.cn/ReSharper-pei-zhi/ 阅读全文

posted @ 2014-09-22 14:08 多远才是未来 阅读(106) 评论(0) 推荐(0)

系统日志
摘要: 阅读全文

posted @ 2014-08-22 11:12 多远才是未来 阅读(91) 评论(0) 推荐(0)

长连接和短连接
摘要:http://www.cnblogs.com/liuyong/archive/2011/07/01/2095487.html 阅读全文

posted @ 2014-08-19 15:08 多远才是未来 阅读(121) 评论(0) 推荐(0)

“未能加载文件或程序集file:///E:/MoneySet.dll或它的某一个依赖项,试图加载格式不正确的程序,行203,位置5. 文件:MReportSet.resx”,
摘要:http://bbs.csdn.net/topics/3903342651.右键卸载项目2.右键选择编辑工程文件,在打开的文件的最后一行之前加以下内容: true $(IntermediateOutputPath)ResGenForced32Bit\ $(SD... 阅读全文

posted @ 2014-05-07 13:41 多远才是未来 阅读(249) 评论(0) 推荐(0)

二维码
摘要:http://blog.csdn.net/dekko/article/details/6122239 阅读全文

posted @ 2014-03-24 16:55 多远才是未来 阅读(116) 评论(0) 推荐(0)

事物
摘要:http://my.oschina.net/chape/blog/169938 阅读全文

posted @ 2013-12-25 16:59 多远才是未来 阅读(101) 评论(0) 推荐(0)

性能优化
摘要:性能优化的方法主要由:优化系统结构,使用缓存,延后执行,优化算法和异步/多线程。http://www.cnblogs.com/zhouwei0213/archive/2013/06/01/3112729.html 阅读全文

posted @ 2013-12-10 15:02 多远才是未来 阅读(154) 评论(0) 推荐(0)

消息队列msmq
摘要:http://q.cnblogs.com/q/26895/远程队列必须现在运程服务器上创建。在WindowsServer2008上安装IIS服务和MSMQ功能后,系统会在IIS的默认网站下建立一个MSMQ默认网络。如果将IIS的默认网站删除了,那么这个默认的MSMQ网络就无法建立,也就无法接受信息了。结论:要使用MSMQ,IIS的默认网站千万不要删除。否则只能重装IIS了。http://bbs.csdn.net/topics/310122576http://www.cnblogs.com/leeolevis/archive/2010/12/21/1912720.html 阅读全文

posted @ 2013-11-22 16:31 多远才是未来 阅读(225) 评论(0) 推荐(0)

Appdomin
摘要:http://www.cnblogs.com/foman/archive/2009/10/18/1585655.html 阅读全文

posted @ 2013-09-22 17:39 多远才是未来 阅读(176) 评论(0) 推荐(1)

操作文件的File类
摘要:http://msdn.microsoft.com/zh-cn/library/vstudio/System.IO.File.aspx 阅读全文

posted @ 2013-09-22 15:19 多远才是未来 阅读(140) 评论(0) 推荐(1)

反射
摘要:http://developer.51cto.com/art/200908/147740.htmhttp://www.360doc.com/content/11/1026/17/7770447_159376451.shtml 阅读全文

posted @ 2013-08-28 18:24 多远才是未来 阅读(116) 评论(0) 推荐(0)

12小时制时间
摘要:http://zh.wikipedia.org/wiki/%E4%BA%8C%E5%8D%81%E5%9B%9B%E5%B0%8F%E6%99%82%E5%88%B6 http://www.metsky.com/archives/397.html 阅读全文

posted @ 2013-05-13 15:12 多远才是未来 阅读(140) 评论(0) 推荐(0)

提高大数据量并发访问时效率
摘要:最近在做windows服务方面的开发,主要用它来解决A服务和其他服务发送数据失败后,重新发送的问题。为了提高大数据量并发访问时效率问题,要在多台服务器上安装服务并采用多线程,就像是超市的收银,利用多个收银台解决众多消费者的结算。在多台服务器上安装服务就会想到对数据库表数据的多次访问,假设A服务和B服务同时请求到要发送的数据,这样该数据就会被发送和更新两次。为了解决对数据表数据的同时访问。我们在服务里每次查找一条满足条件的数据。查找完之后更新status,(分为两种,0代表可以访问,1代表其他服务正在访问该条记录)和signId(用来表明是哪台服务器上的设备正在访问该表的数据)。表如下:多个服务 阅读全文

posted @ 2012-12-20 16:24 多远才是未来 阅读(382) 评论(0) 推荐(0)