using System;
using System.Collections.Generic;
public class Program {
static void Main() {
List <Action> printers = new List <Action>();
List <string> names = new List<string>() { "Kostas", "Sotos", "Michalis", "Ioannis" };
foreach(var name in names) {
printers.Add(() => {
Console.WriteLine(name);
});
}
foreach(var printer in printers) {
//printer();
//How many times is called and what are the results