private static IEnumerable <IPublishedContent> ConvertToDocuments(XmlNodeList xmlNodes, bool isPreviewing)
 {
     return(xmlNodes.Cast <XmlNode>()
            .Select(xmlNode => XmlPublishedContent.Get(xmlNode, isPreviewing)));
 }
 private IEnumerable <IPublishedContent> ConvertToDocuments(XmlNodeList xmlNodes, bool isPreviewing)
 {
     return(xmlNodes.Cast <XmlNode>()
            .Select(xmlNode => XmlPublishedContent.Get(xmlNode, isPreviewing, _cacheProvider, _contentTypeCache)));
 }
 private static IPublishedContent ConvertToDocument(XmlNode xmlNode, bool isPreviewing)
 {
     return(xmlNode == null ? null : XmlPublishedContent.Get(xmlNode, isPreviewing));
 }
 private IPublishedContent ConvertToDocument(XmlNode xmlNode, bool isPreviewing)
 {
     return(xmlNode == null ? null : XmlPublishedContent.Get(xmlNode, isPreviewing, _cacheProvider, _contentTypeCache));
 }