Anonymous means no name. An anonymous function is, an unnamed block of code that is passed to a delegate constructor. One advantage of using an anonymous function is that there is no need to declare a separate method whose only purpose is to be passed to a delegate. An anonymous method is created by following the keyword delegate with a block of code.
delegate void AnonymousDemo();
static void Main()
AnonymousDemo DelObj = delegate
// This is the block of code passed to the delegate.
Console.WriteLine("Hello anonymous method");
}; // notice the semicolon