What do you mean by delegate

What do you mean by the term delegate, why must you use it and explain how do you call it?

E

Expert

Verified

The delegate is a reference type which refers to a Shared method of a type or to instance method of an object. Delegate is similar to a function pointer in C and C++. Pointers are employed to store the address of a thing. Delegate lets some other code, call your function devoid of requiring knowing where your function is really positioned. All events in the .NET really use delegates in the background to wire up the events. Events are actually just a modified form of the delegate.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.