using System;
public delegate void Print(int number);
public class Program
{
public static void Main()
//while defining the delegate, there is no parameter correspoinding to 'number'
Print print = delegate {
Console.WriteLine("Inside Anonymous method. It doesn't require the number parameter.");
};
//here 2 is being passed but that gets ignored by the target anonymous method.
print(2);
}