protected virtual void ListErrors(IList errorList) {
// First list errors in this element, then in subelements
foreach (InvalidPropValue invalidValue in _values.InvalidValues) {
errorList.Add(invalidValue.Error);
}
foreach (ConfigurationElement elem in _values.ConfigurationElements) {
elem.ListErrors(errorList);
ConfigurationElementCollection collection = elem as ConfigurationElementCollection;
if (collection != null) {
foreach (ConfigurationElement item in collection) {
item.ListErrors(errorList);
}
}
}
}