Senior .Net Developer Question:
Download Questions PDF

Explain me what is an anonymous method and how is it different from a lambda expression?

Senior .Net Developer Interview Question
Senior .Net Developer Interview Question

Answer:

For an anonymous method, the declaration comes before its use and implementation through a delegate. Also, this method doesn’t require a name.

A lambda expression refers to an anonymous method in a single line, elegantly replacing the representative for this function.

Download Senior .Net Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell us what is the difference between struct and class?Explain me why do we use MSMQ?