For example, we implement the INotifyPropertyChanged interface:
public event PropertyChangedEventHandler PropertyChanged; private void OnPropertyChanged([CallerMemberName] string propertyName = null) { var handler = PropertyChanged; if (handler != null) handler.Invoke(this, new PropertyChangedEventArgs(propertyName)); }
Two things:
- Copy the event to a local variable to prevent multithreading errors ( here are some examples). Resharper issues a notification if you do not copy the local variable:

- Check it for null to prevent a
NullReferenceException
But now we can use the ?. Operator ?. for zero check. And if I use it, Resharper is idle: 
So the question is: should I copy the ProperyChanged event to a local variable if I use a null condition statement?
source share