VB to C # Translate Event Handler that implements the interface event

I was looking at the code in WPF which is in VB. I am trying to convert it to C #. Even though I have used the VB.Net to C # converter, I cannot figure out the correct syntax for the following C # code. Any ideas how to write this in C #?

VB code:

Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged

      

+1


source to share


1 answer


This article should help:

A practical guide. Implementing Interface Events (C # Programming Guide)



So, in your case it should be (in theory):

 public event PropertyChangedEventHandler PropertyChanged;

      

+2


source







All Articles