摘要: public class DataToEnity<T> where T : new() { public static T DataRowToEntity(DataRow dr) { //1.获取类型 Type type = typeof(T); //2.创建实例 T temp = Activato 阅读全文
posted @ 2017-11-23 00:48 kiamer 阅读(124) 评论(0) 推荐(0) 编辑
摘要: public class DrawingSecurityCode { /// /// 生成验证码,并返回 /// /// public string GetSecurityCode(int n) { string code = GenerateCheckCod... 阅读全文
posted @ 2017-11-23 00:16 kiamer 阅读(212) 评论(0) 推荐(0) 编辑
摘要: public class MemcachedHelper { private static MemcachedClient mc = null; static MemcachedHelper() { //从配置文件中获取比较好 // string[] serverlist = { "127... 阅读全文
posted @ 2017-11-23 00:14 kiamer 阅读(94) 评论(0) 推荐(0) 编辑