摘要: 通过.NET反编译工具可以查看到ArrayList内部的代码,发现ArrayList并非由链表实现,而是由一个不断扩容的数组对象组成。下面模仿ArrayList写一个自己的MyArrayList。using System;using System.Collections.Generic;using ... 阅读全文
posted @ 2014-04-14 22:23 AnyDrew 阅读(596) 评论(0) 推荐(0) 编辑