static void Main(string[] args) { Class1 class1 = new Class1(); class1.PrintThemWithLimit(int.MaxValue, PrintIt); }