Channel9Downloader.ViewModels.Framework.ValidatingObject.AddError C# (CSharp) Method

AddError() protected method

Adds an error to the errors dictionary.
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.
return void
        protected void AddError(string propertyName, string message)
        {
            if (!_errors.ContainsKey(propertyName))
            {
                _errors[propertyName] = message;
            }
        }