当前位置: 代码迷 >> ASP.NET >> 高分问个关于Ilist的简单有关问题
  详细解决方案

高分问个关于Ilist的简单有关问题

热度:229   发布时间:2013-02-25 00:00:00.0
高分问个关于Ilist的简单问题
在查关于Ilist的相关资料时,查到一篇英文文档。本人E文太差,请人帮看看
资料地址
http://www.cs.usfca.edu/~wolber/courses/110s/lectures/listInCSharp.htm

When   you   declare   a   variable   of   type   IList,   it   can   end   up   pointing   to   either   an   ArrayList   or   LinkedList,   e.g.,
上面的E文是什么意思?
如果能再提供点Ilist的资料,不胜感激。




------解决方案--------------------------------------------------------
其实主要是说ArrayList和LinkedList等都实现了IList的接口
你可以声明一个IList类型的变量,使之指向ArrayList或者LinkedList
IList list = new ArrayList();
IList list = new LinkedList();
------解决方案--------------------------------------------------------
When you declare a variable of type IList, it can end up pointing to either an ArrayList or LinkedList, e.g.,
===============================================
当你声明了一个IList类型的变量,它可以指向一个ArrayList或者LinkedList, 等等