摘要: public class DataHelper { const string DEFSTR = ""; /// <summary> /// 根据一个类型,获取其默认值,数字默认是为0,字符串默认值为一个空字符串 /// </summary> /// <typeparam name="T"></typeparam> /// <returns></returns> static T GetDefault<T>() { T t = default(T); //如果是字符串类型, 阅读全文
posted @ 2011-04-12 10:14 再快一点 阅读(4617) 评论(0) 推荐(0) 编辑