Abstract
Up to this point in the text, most of the applications you have developed added various bits of code to Main(), which, in some way or another, sent requests to a given object. However, many applications require that an object be able to communicate back to the entity that created it using a callback mechanism. While callback mechanisms can be used in any application, they are especially critical for graphical user interfaces in that controls (such as a button) need to invoke external methods under the correct circumstances (when the button is clicked, when the mouse enters the button surface, and so forth).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Andrew Troelsen and Philip Japikse
About this chapter
Cite this chapter
Troelsen, A., Japikse, P. (2017). Delegates, Events, and Lambda Expressions. In: Pro C# 7. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3018-3_10
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3018-3_10
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3017-6
Online ISBN: 978-1-4842-3018-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)