INotifyPropertyChanged - delegate{}

am just switching over to c#, I have the line

   public event PropertyChangedEventHandler PropertyChanged = delegate { };

what does the = delegate{} do?

I am sure I have seen this slightly different to check if anything if connected, a null check previously
VisionTeknologyAsked:
Who is Participating?
 
anarki_jimbelConnect With a Mentor Commented:
I believe this declares an anonymous method:

http://www.csharp-station.com/Tutorial/CSharp/Lesson21
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.