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?
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.
A lambda expression refers to an anonymous method in a single line, elegantly replacing the representative for this function.
Previous Question | Next Question |
Tell us what is the difference between struct and class? | Explain me why do we use MSMQ? |