using System;

public class Delegate {

	public delegate int FctDelegate(int i);

	public static void Main(){
		Delegate d = new Delegate();

		FctDelegate fn = new FctDelegate(d.GetSquare);;
		fn += new FctDelegate(d.GetSquare);

		for(int i=0; i<80; i++)
			Console.WriteLine("Mon traitement...");		
	}


	public int GetSquare(int i) {
		return i*i;
	}

	public void Terminate() {
		Console.WriteLine("--> Termine...");
	}

}