·from shell,
VB, PERL, etc
wworks on
any collection, including [ ] arrays
using System.Collections;
class Example
{
static void Main()
{
ArrayList numbers = new ArrayList();
...
// fill numbers with 0 through 9
...
foreach (int number in numbers)
{
Console.Write("{0} ", number);
}
}
}