what is delegates??
what is delegates??
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Akkiraju IvaturiPosted Aug 11, 2012, 4:20 PM
A delegate is a type that references a method. Once a delegate is assigned a method, it behaves exactly like that method.
Sukesh MarlaPosted Aug 12, 2012, 2:15 AM
In real word scenario...see..
Basically we can we can take any object like pencil,Pen and pass to anybody but some like Water cannot be passed unless and until its placed inside a container.
Similary conside you created a function such that a integer value can be passed to it as parameter, a string can be, a float can be...But what if u want to create a function which will accept another function as parameter, Then delegate comes handy.
Once you make delegate pointing to a function u can do anything with that function, you can call that function synchronously, asynchronously or even pass as a parameter to some other function.
Hope It Helped. Please Check This is Currect Answer.