随笔分类 -  C#

C#
摘要:介绍三种C#实现单例模式的方法,主要是双锁定,静态法以及Nest延时加载法。 阅读全文
posted @ 2012-03-04 20:55 zeus2 阅读(304) 评论(0) 推荐(0)
摘要:public static IList<SqlParameter> GetParas<T>(T t, out string where) { StringBuilder sb = new StringBuilder(); List<SqlParameter> paras = new List<SqlParameter>(); Type type = ... 阅读全文
posted @ 2009-06-25 23:48 zeus2 阅读(316) 评论(1) 推荐(0)
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceConsoleApplication5{publicstaticclassSort{#region插入排序privatestaticvoidInsertSort(int[]array,inti){inttmp=array[i]... 阅读全文
posted @ 2008-05-23 00:14 zeus2 阅读(972) 评论(0) 推荐(0)