public static XElement MapList <TSource>(this IXmlMappingEngine engine, IList <TSource> source, string collectionNode, bool outputDefault = false, string xmlNamespace = null) { var element = engine .MapList <TSource, XElement>(source, collectionNode, outputDefault) .InNamespace(xmlNamespace); if (!outputDefault && (element == null || element.IsEmpty)) { return(null); } return(element); }
public static List <TDestination> MapList <TDestination>(this IXmlMappingEngine engine, XPathProcessor xpathProcessor, string collectionNode, string xmlPrefix = "", bool outputDefault = false) { return(engine.MapList <XPathProcessor, TDestination>(xpathProcessor, collectionNode, string.Empty, xmlPrefix, outputDefault: outputDefault)); }