Beispiel #1
0
        public bool Map(object parentObject, PropertyInfo destinationProperty, XmlElement element, XmlElement allConfig, ConfigMapper mapper)
        {
            var objectElement = element.GetElementNamed(ElementName ?? destinationProperty.Name);

            if (objectElement == null)
            {
                return(false);
            }

            object destinationObject = GetDestinationObject(parentObject, destinationProperty);

            /////////not sure about this....
            mapper.PopulateObject(destinationObject, objectElement);

            return(true);
        }
        public bool Map(object parentObject, PropertyInfo destinationProperty, XmlElement element, XmlElement allConfig, ConfigMapper mapper)
        {
            var objectElement = element.GetElementNamed(ElementName ?? destinationProperty.Name);

            if (objectElement == null)
            {
                return false;
            }

            object destinationObject = GetDestinationObject(parentObject, destinationProperty);

            /////////not sure about this....
            mapper.PopulateObject(destinationObject, objectElement);

            return true;
        }