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