Interview answers verified by specialists.

Find interview questions and answers on this website:

See right interview answers on 30 common job interview questions

Describe Anonymous functions in detail.

Ans: 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.
using System;

namespace Test
delegate void AnonymousDemo();
class Demo
static void Main()

AnonymousDemo DelObj = delegate
// This is the block of code passed to the delegate.

Console.WriteLine("Hello anonymous method");
}; // notice the semicolon

Do you know that?

44% freelancers are age 25-34 Next


Fast Payments
Payoneer sing up to get free