![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Operators, Delegates, and Events - slide 7 : 20 |
A delegate is a type the values of which consist of methods
Delegates allow us to work with variables and parameters that contain methods
![]() | A Delegate of simple numeric functions. |
![]() | Output from the NumericFunction delegate program. |
![]() | Output from the Compose delegate program. |
Delegates make it possible to approach the functional programming style
Methods can be passed as parameters to, and returned as results from other methods
![]() | Finding and sorting elements in an array |
![]() | How local are local variables and formal parameters? |