C# Event Delegates

Using the "+=" notation when creating delegate event is a really fastway of coding but there is a caveat if the delegate is declared in thewrong place. for example declaring the handler inline, in a method: private void btn_Click(object sender, System.Windows.RoutedEventArgs e){EventBus.Event+= new EventHandler(EventBus_Event);//....do code here} When the btn_Click method is fired, an event handler... Continue Reading →

A WordPress.com Website.

Up ↑