首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

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

2012-01-06 
高分问个关于Ilist的简单问题在查关于Ilist的相关资料时,查到一篇英文文档。本人E文太差,请人帮看看资料地

高分问个关于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, 等等

热点排行