List GetEnumerator
2015-07-10 09:39
190 查看
static void Main() { List<int> list = new List<int>(); list.Add(1); list.Add(5); list.Add(9); List<int>.Enumerator e = list.GetEnumerator(); Write(e); } static void Write(IEnumerator<int> e) { while (e.MoveNext()) { int value = e.Current; Console.WriteLine(value); } }
相关文章推荐
- jQuery禁用鼠标右键
- 外部链接
- nyoj115 城市平乱(dijkstra算法)
- codeforce 3D. Least Cost Bracket Sequence(贪心)
- 今天是个好日子o
- “黑马程序员“Java中的强制类型转换是如何转换的?
- JAVA入门基础笔记--string类型
- LeetCode || Add Two Numbers
- Xamarin For Android 打包编译APK文件详细图文教程
- Jni中C++和Java的参数传递
- NSMutableString与NSString一些用法
- JAVA入门基础笔记-数组类型
- java(Web)中相对路径,绝对路径问题总结
- 简述Jquery与DOM对象
- iOS编程 界面布局 纯代码 VFL编写和添加
- json串的解析格式
- 不停止MySQL服务增加从库的两种方式
- NSMutableString与NSString一些用法
- Solution 25: 最长连续数字子串
- [译] 提高日志质量的 5 大技巧