using System;
using System.Collections;
namespace App{
class MyClass{
public static void Main(string[] args){
ArrayList arrayList = new ArrayList();
arrayList.Add(1);//添加一个元素到ArrayList
Console.WriteLine(arrayList[0]);
}
}
}
x
using System;
using System.Collections;
namespace App{
class MyClass{
public static void Main(string[] args){
ArrayList arrayList = new ArrayList();
arrayList.Add(1);//添加一个元素到ArrayList
Console.WriteLine(arrayList[0]);
}
}
}
原文:https://www.cnblogs.com/mlh1421/p/673a9f1e52d626b0bc2ff25fcebede72.html