Refresher/csharp/Delegates How and When

Presentation

Delegates How and When    
 
 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)