会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
卖银鳞胸甲的D61
物美价廉,5G1件
博客园
首页
新随笔
联系
订阅
管理
汗一下,.Net的单维数组自动实现IList<T>接口
今天才在msdn上发现:
In C# 2.0, single-dimensional arrays that have a lower bound of zero automatically implement
IList
<T>. This enables you to create generic methods that can use the same code to iterate through arrays and other collection types. This technique is primarily useful for reading data in collections. The
IList<T>
interface cannot be used to add or remove elements from an array; an exception will be thrown if you attempt to call an
IList<T>
method such as
RemoveAt
on an array in this context
版权所有,欢迎转载
posted @
2009-11-23 05:44
xiaotie
阅读(
750
) 评论(
0
)
编辑
收藏
举报
刷新页面
返回顶部
公告