ASP.NET Delegates


Delegate is a type of pointer/caller to a method or event in code behind.

As an example lets assume there is a button click event and a message is popup once user clicked on that button. But if developer need to pop up same message by invoking that button click procedure then we have to use a delegate. Delegate actually keeps a reference of a predefined procedure/method and execute it once it needed

Try below link to be genius on delegates. It is an awesome article.

http://www.codeproject.com/Articles/26936/Understanding-NET-Delegates-and-Events-By-Practice

Comments

Popular Posts