日期:2014-05-17 浏览次数:20962 次
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Collections;
namespace Csharp
{
class People
{
public void DoSomething()
{
Console.WriteLine("People::DoSomething()");
}
}
class Program
{
static void Main(string[] args)
{
ArrayList array = new ArrayList();
array.Add(new People());
array.Add(new People());
array.Add(new int());
Console.WriteLine(array.Count);
Console.ReadKey();
}
}
}
ArrayList:
public virtual int Add (
Object value
)