摘要: 1、定义扩展对象 1: public static class ExtendMethod 2: { 3: 4: public static Type GetSingleGenericType(this Type t) 5: { 6: Type[] ts = GetGenericType(t); 7: if (ts == null) return null; 8: return ts[0]; 9:... 阅读全文
posted @ 2011-04-11 16:46 文明的天空 阅读(207) 评论(0) 推荐(0) 编辑