protected AddError ( string propertyName, string message ) : void | ||
propertyName | string | Name of the property for which an error should be added. |
message | string | Error message that will be shown to the user. |
Résultat | void |
protected void AddError(string propertyName, string message)
{
if (!_errors.ContainsKey(propertyName))
{
_errors[propertyName] = message;
}
}