个彻底解释 C#泛型的源代码
摘要:
using System;using System.Collections.Generic;using System.Text;namespace Iinterface{ //声明T类型. public class GenericList<T> : System.Collections.Generic.IEnumerable<T> { protected Node head; protected Node current = null; // 定义一个Node类,该类也是泛型类型 protected class Node { public Node next; //T类 阅读全文
posted @ 2012-11-23 11:48 java开发学习 阅读(235) 评论(0) 推荐(0) 编辑