A delegate is an item-orientated, conTrolled, steady and kind-secure feature pointer inside the .NET Framework. A delegate signature includes its call, go back type and arguments exceeded to it. Rather than passing Records, a delegate passes a way to every other approach. Delegates are used in lots of Contexts, consisting of enforcing callbacks and occasion handlers, Access Thread points and more than one varieties of technique specifications. Because a delegate does not recognise the Class of a referenced item, it's far used for Anonymous invocation.
A delegate’s important motive is linking the delegate item to the caller, which means that the called technique reference does no longer require specification at Compile time. Delegates play a essential Function in the Event driven Programming version, where occasion handlers are brought to consumer Interface (UI) controls.
Delegate types are:
Other delegate functions are as follows:
Your Score to Delegate article
Score: 5 out of 5 (1 voters)
Be the first to comment on the Delegate
tech-term.com© 2023 All rights reserved