加载中…
  
博文
分类: 我与.NET

C#中使用IEnumerator接口遍历集合!

 
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            ArrayList arlist = new ArrayList();
            for (int i = 0; i <= 8; i++)
            {
                arlist.Add(i);
            }
 
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有