Refresher/csharp/Delegates How and When

From Wikiversity
Jump to navigation Jump to search

Presentation

Accessibility Modifiers
Accessibility Modifiers
Delegates How and When
List of Topics
List of Topics
   
This presentation was made possible by Wikiversal/WikiverSuite, which is made possible by your donation. Thank you for your support.
This presentation was made possible by Wikiversal/WikiverSuite, which is made possible by your donation. Thank you for your support.
List of Topics
List of Topics
How to create a guided tour such as this presentation?
 Delegate: a class -- usable if declared and instantiated
 
 Delegate use: passed around as a parameter, and invoked by the receiving object
 
 Delegate example 1: success = MyAddressProvider.HandleCampaign(WhatToDoWithAddresses)
 
 Delegate example 2: MyMenuItem.Click += new System.Windows.RoutedEventHandlerMyMenuItem_Click)
 
Mobile version