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