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