In the msdn page for InotifyDataErrorInfo.GetErrors it says that GetErrors method is called with a parameter which can be either:
- The name of the property we want to retrieve error info for
- Null
- String.Empty
The documentation doesn't say when this method is called with null vs String.Empty. I've seen both cases in my app and I need to understand when I can expect one or the other.
Clarification: I'm not asking about how I should implement GetErrors method (I simply test for both null and empty). The question is more to understand why the WPF framework tries to call this method sometimes with null and sometimes with an empty string (I encountered both cases in my app). If the intent is to ask for errors that are not tied to a specific property, why use two different values for the call when only one is enough?
nullandstring.Empty?