Thursday, March 29, 2012

Please explain Delegates

Can someone pls explain the concept of delegates in laymans terms. Code samples in VB will be most helpful as I am having a lot of trouble understanding this subject.Delegates are objects with one the most important method. You may think of it by namecall();

if you wnat a method of one object to be called by third object. you give to this third object delegate to the method of the first object.
Hi,

Delegates are like function pointers in C++. They are used to pass the functions as parameter to the other function. There are so many articles on this topic. please visit
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=141

Thanks,
Sridhar!!

0 comments:

Post a Comment