using System;
using System.IO;
using System.Threading;
public class Program
{
public static void Main()
var exCount = 0;
retry:
try
Console.WriteLine("Trying... exCount: " + exCount);
throw new IOException();
}
catch (IOException)
exCount++;
if (exCount < 3)
Thread.Sleep(100);
goto retry;
throw;