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

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

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

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

            return errors;
        }