?? program.cs
字號(hào):
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace Example9_13 {
class Program {
static void Main(string[] args) {
//創(chuàng)建一個(gè)ArrayList型變量myArrayList,并設(shè)置為只讀
ArrayList myArrayList = new ArrayList(3);
ArrayList.ReadOnly(myArrayList);
//嘗試向只讀myArrayList中添加元素
myArrayList.Add("Hello ");
myArrayList.Add("World!");
Console.WriteLine("Capacity: {0}", myArrayList.Capacity);
Console.WriteLine("Count: {0}", myArrayList.Count);
Console.ReadLine();
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -