I've always implemented the IDataErrorInfo interface without actually wondering what this line means and how it works.
string IDataErrorInfo.this[string propertyName]
{
get { return this.GetValidationError(propertyName); }
}
How does .this[string propertyName]
work, and when/how does this property get called?
IDataErrorInfo
object where you write:string myPropertyError = myDataErrorInfo["SomePropertyName"];
– Saltzman.this[string propertyName]
was the main part I didn't quite understand. – Toreador