I was implementing a method to throw the event PropertyChanged
of INotifyPropertyChanged
. I did the event validation in the traditional way, ie with if (PropertyChanged != null)
. But VS suggested a leaner form that is PropertyChanged?.Invoke ( this, new PropertyChangedEventArgs ( propertyName ) );
.
Of course, the code is self-explanatory, that is, "If PropertyChanged
is not null, execute method Invoke
". But I wanted to know what this feature is called so I can search more information about it.