What is delegate ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

What is delegate ?

explain with simple program

14th Apr 2017, 2:12 PM
Mayur Phanse
Mayur Phanse - avatar
1 Réponse
+ 4
A delegate in C# is similar to a function pointer in C or C++. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object. The delegate object can then be passed to code which can call the referenced method, without having to know at compile time which method will be invoked. http://www.akadia.com/services/dotnet_delegates_and_events.html
14th Apr 2017, 2:36 PM
Babak
Babak - avatar