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

this() public method

Gets the error message for the property with the given name.
public this ( string propertyName ) : string
propertyName string The name of the property whose error message to get.
return string
        public string this[string propertyName]
        {
            get
            {
                RemoveError(propertyName);
                ValidateProperty(propertyName);

                RaisePropertyChanged(() => HasErrors);

                return _errors.ContainsKey(propertyName) ? _errors[propertyName] : null;
            }
        }