Catel.MVVM.ModelErrorInfo.GetErrors C# (CSharp) Метод

GetErrors() публичный Метод

Gets the errors for the specificied propertyName. If the propertyName is null or string.Empty, entity level errors will be returned.
public GetErrors ( string propertyName ) : IEnumerable
propertyName string Name of the property.
Результат IEnumerable
        public IEnumerable<string> GetErrors(string propertyName)
        {
            var errors = new List<string>();

            if (string.IsNullOrEmpty(propertyName))
            {
                lock (_businessRuleErrors)
                {
                    errors.AddRange(_businessRuleErrors);
                }
            }
            else
            {
                lock (_fieldErrors)
                {
                    if (_fieldErrors.ContainsKey(propertyName))
                    {
                        errors.AddRange(_fieldErrors[propertyName]);
                    }
                }
            }

            return errors;
        }