Use Anonymous Method with a Delegate in C#

A colleague of mine asked me a question – ‘How can we use an Anonymous method with a Delegate and when should we do it”.By using anonymous methods, you reduce the coding overhead in instantiating delegates, by eliminating the need to create a separate method. You can use it to run code snippets that would otherwise require a named method or use it as a quick event-handler with no name.Here’s the

This entry was posted in C#, Syndicated, VB.NET. Bookmark the permalink.

Comments are closed.