PrintDataGridView.csusing System;using System.Collections.Generic;using System.Text;using System.Drawing;using System.Data;using System.Data.SqlClient...
/**文件操作类 **/ #region 引用命名空间 using System; using System.Collections.Generic; using System.Text; using System.IO; #endregionnamespace CommonUtilities { ...
分类:
Web程序 时间:
2014-06-26 22:36:03
阅读次数:
216
先看语法:String.SubString(int index,int length) index:开始位置,从0开始 length:你要取的子字符串的长度例子: 1 using System; 2 using System.Collections.Generic; 3 using Sys...
分类:
其他好文 时间:
2014-06-26 18:31:49
阅读次数:
214
使用JetBrains的DotPeek工具可以方便地查看.net的部分源码。于是看了一下.NET的内部是如何实现排序的算法。
在System.Collections.Generic 命名空间下可以看到ArraySortHelper的实现。
public void Sort(T[] keys, int index, int length, IComparer comparer)
{ ...
分类:
Web程序 时间:
2014-06-25 19:20:12
阅读次数:
299
版本为5.1.2using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Sys...
分类:
其他好文 时间:
2014-06-25 15:13:27
阅读次数:
207
memcache和redis区别2014年4月27日mood暂无评论memcache官方定义Free & open source, high-performance, distributed memory object caching system, generic in nature, but i...
分类:
其他好文 时间:
2014-06-25 14:59:31
阅读次数:
190
看了一些关于这方面的文档,自我总结: 特性(Attribute)就是对一个方法或类做的一个额外的属性说明,也就是附加说明下面是我自己抄的一个实例程序:using System;using System.Collections.Generic;using System.Linq;using Syst....
分类:
Web程序 时间:
2014-06-25 14:18:02
阅读次数:
161
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Mail;namespace SendMessage{ class SendEmail {...
分类:
其他好文 时间:
2014-06-25 12:04:19
阅读次数:
251
使用 F# 列表
在 C# 中使用 F# 的列表,是完全可能的,但是,我建议不要用,因为,只要再做一点,就会使事情在 C# 看来更加自然。例如,把列表转换成数组很简单,用List.toArray 函数;转换成System.Collections.Generic.List,用 new ResizeArray()构造函数;转换成System.Collections.Generic.IEnume...
分类:
其他好文 时间:
2014-06-24 22:05:13
阅读次数:
318
服务器是centos6,运行几天突然就连不上了,重启网络服务无效,重启系统有效,但是不久又出错了,日志/var/log/messages如下:Dec2803:49:51kvm1kernel:————[cuthere]————Dec2803:49:51kvm1
kernel:WARNING:atnet/sched/sch_generic.c:261dev_watchdog+0x26b/0×280()(N..
分类:
Web程序 时间:
2014-06-24 16:49:09
阅读次数:
407