摘要: // 定义集合 List ts = new List(); // 获得此模型的类型 Type type = typeof(T); //定义一个临时变量 string tempName = string.Empty; //遍历Dat... 阅读全文
posted @ 2018-07-01 14:55 爱好学习的菜鸡码农 阅读(335) 评论(0) 推荐(0)
摘要: 首先引用命名空间 需要使用到泛型,将方法定义为泛型类 完成~ 阅读全文
posted @ 2018-07-01 08:54 爱好学习的菜鸡码农 阅读(341) 评论(0) 推荐(0)