private void PopulateComplexValues(XmlElement collectionElement, Type payloadType, ConfigMapper mapper, Action <object> adder)
 {
     foreach (var childElement in collectionElement.ChildNodes.OfType <XmlElement>())
     {
         var mappedObject = mapper.GetObjectFromXml(payloadType, childElement);
         adder(mappedObject);
     }
 }
 private void PopulateComplexValues(XmlElement collectionElement, Type payloadType, ConfigMapper mapper, Action<object> adder)
 {
     foreach (var childElement in collectionElement.ChildNodes.OfType<XmlElement>())
     {
         var mappedObject = mapper.GetObjectFromXml(payloadType, childElement);
         adder(mappedObject);
     }
 }