ArrayList
using System;
using System.IO;
using System.Collections;
public class Class1
{
public Class1()
{
}
static void Main(string[] args)
{
ArrayList names = new ArrayList();
string path = "D:\\csTest";
names.AddRange(Directory.GetFiles(path));
foreach (string s in names)
{
Console.WriteLine(s);
}
}
}