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