static void Main(string[] args) { Dell2 del2 = new Dell2(Go); Dell1 del1 = new Dell1(Start); del1(10, del2); Console.WriteLine(); Console.Read(); }
public static void Start(int x, Dell2 d) { for (int i = 0; i < x; i++) { d(); Thread.Sleep(1000); Console.Write(i); Console.WriteLine(); } }