2. Delegate is ?
• Reference to a method
• Similar to Function pointers in c++
• Implement run time functionality
• very flexible
• reusable,
• Implement different functionality in run time
• Implement Events
• Event ?
4. Delegate with Para
• Declaring a Delegate
• Create Delegate Reference
• Point to a Method
• Execute
5. Simple Event
• Declare Delegate
• Declare Corresponding Event
• Call the Delegate when needed (raise the event)
• Catch the event in the program
6. Event with Parameters
• Declare Delegate
• Declare Corresponding Event
• Call the Delegate when needed (raise the event)
• Catch the event in the program