using System;
//A delegate is a type safe function pointer
public delegate void HelloFunctionDelegate(string message);
public class Program
{
public static void Main()
HelloFunctionDelegate del=new HelloFunctionDelegate(hello);
del("Hello from delegate");
}
public static void hello(string message)
Console.WriteLine(message);