A delegate is similar to a class that is used for storing
the reference to a method and invoking that method at runtime, as required. A
delegate can hold the reference of only those methods whose signatures are same
as that of the delegate. Some of the examples of delegates are type-safe
functions, pointers, or callbacks.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
A delegate is similar to a class that is used for storing the reference to a method and invoking that method at runtime, as required. A delegate can hold the reference of only those methods whose signatures are same as that of the delegate. Some of the examples of delegates are type-safe functions, pointers, or callbacks.