+ 3

Can someone explain to me in simple english what are delegates in c# ? :)

c# delegates explanation pls ?

12th Feb 2018, 2:36 PM
Lazar Tomic
Lazar Tomic - avatar
1 Resposta
+ 3
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.
28th Mar 2018, 12:56 PM
Baraa AB
Baraa AB - avatar