سؤال

I have this coded in the implementation section of IDataErrorInfo in a model class for clearing the error once the errors are cleared.

I dont understand which property refresh is being raised here with an empty string?

if (raiseNotification)
                    this.RaisePropertyChanged("");
هل كانت مفيدة؟

المحلول

Extracted from MSDN:

The PropertyChanged event can indicate all properties on the object have changed by using either null or String.Empty as the property name in the PropertyChangedEventArgs.

In this case, null, String.Empty or "" :^)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top