/// <summary> /// Gets a String representing all broken rules for this property /// </summary> /// <param name="propertyName">Name of the property to check rules for.</param> public String this[String propertyName] { get { //kdawg's contribution to global chaos if (BrokenRules.Count(r => r.PropertyName == propertyName) > 0) { return(String.Join(Environment.NewLine, BrokenRules.Where(r => r.PropertyName == propertyName).Select(r => r.ErrorMessage).ToArray())); } else { return(String.Empty); } } }