using System;
using System.Collections.Generic;
class Program
{
static void Main()
{
List names = new List();
names.Add("B");
names.Add("A");
names.Add("R");
names.ForEach(Print);
names.ForEach(delegate(String name)
{
Console.WriteLine(name);
});
}
private static void Print(string s)
{
Console.WriteLine(s);
}
}