打赏
摘要: 泛型类和泛型方法同时具备可重用性、类型安全和效率,这是非泛型类和非泛型方法无法具备的。泛型通常用在集合和在集合上运行的方法中。.NET Framework 2.0 版类库提供一个新的命名空间 System.Collections.Generic,其中包含几个新的基于泛型的集合类。建议面向 2.0 版 阅读全文
posted @ 2017-04-18 17:02 刘奇云 阅读(3464) 评论(0) 推荐(0)
摘要: typeof: The typeof operator is used to obtain the System.Type object for a type. 运算符,获得某一类型的 System.Type 对象。 Type t = typeof(int); GetType: Gets the T 阅读全文
posted @ 2017-04-18 16:55 刘奇云 阅读(646) 评论(0) 推荐(0)