program.cs

来自「c#开发宝典 光盘内容。本光盘主要为书中的源程序」· CS 代码 · 共 24 行

CS
24
字号
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace Example14_2 {
    class Program {
        static void Main() {
            ArrayList myArrayList = new ArrayList();

            myArrayList.Add(10);
            myArrayList.Add("Hello");
            myArrayList.Add("0.2");
            myArrayList.Add(true);

            foreach (object i in myArrayList) {
                Console.WriteLine(i);
            }

            Console.ReadLine();
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?