Senior .Net Developer Question: Download Senior .Net Developer PDF

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

Tweet Share WhatsApp

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 PDF Read All 60 Senior .Net Developer Questions
Previous QuestionNext Question
Tell us what is the difference between struct and class?Explain me why do we use MSMQ?