会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
摆脱菜鸟
博客园
首页
新随笔
联系
订阅
管理
2014年5月23日
自定义集合支持使用 foreach循环访问该集合
摘要: 自定义集合支持使用 foreach循环访问该集合,需要实现 IEnumerable 和 IEnumerator 接口。usingSystem;usingSystem.Collections;publicclassPerson{publicPerson(stringfName,stringlName)...
阅读全文
posted @ 2014-05-23 13:53 摆脱菜鸟
阅读(280)
评论(0)
推荐(0)
编辑
公告