摘要: 通过使用泛型类型参数 T,可以编写其他客户端代码能够使用的单个类,避免使用拆箱和装箱。泛型类最常用于集合,如:链表集合List<T>,哈希表Hashtable等。泛型列表list<T>位于using System.Collections.Generic命名空间中,是泛型ArrayList 位于using System.Collections命名空间中,属于非泛型。示例:View Code 1 using System; 2 using System.Collections.Generic; 3 public class StudyList1 4 { 5 public s 阅读全文
posted @ 2012-08-12 16:05 午后の時間 阅读(169) 评论(0) 推荐(0) 编辑