Free mag vol1 | Page 421

CHAPTER 10  DELEGATES, EVENTS, AND LAMBDA EXPRESSIONS In the .NET Framework, callbacks are still possible, and this functionality is accomplished in a much safer and more object-oriented manner using delegates. In essence, a delegate is a type-safe object that points to another method (or possibly a list of methods) in the application, which can be invoked at a later time. Specifically, a delegate maintains three important pieces of information: • The address of the method on which it makes calls • The parameters (if any) of this method • The return type (if any) of this method  Note .NET delegates can point to either static or instance methods. Af