Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EnsureNodeSet()

static IList< XPathNavigator > System.Xml.Xsl.Runtime.XsltConvert.EnsureNodeSet ( IList< XPathItem > listItems)
inlinestatic

Definition at line 302 of file XsltConvert.cs.

303 {
304 if (listItems.Count == 1)
305 {
307 if (!xPathItem.IsNode)
308 {
309 throw new XslTransformException(System.SR.XPath_NodeSetExpected, string.Empty);
310 }
311 if (xPathItem is RtfNavigator)
312 {
313 throw new XslTransformException(System.SR.XPath_RtfInPathExpr, string.Empty);
314 }
315 }
316 return XmlILStorageConverter.ItemsToNavigators(listItems);
317 }
static string XPath_NodeSetExpected
Definition SR.cs:1856
static string XPath_RtfInPathExpr
Definition SR.cs:1858
Definition SR.cs:7

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Xsl.Runtime.XmlILStorageConverter.ItemsToNavigators(), System.SR.XPath_NodeSetExpected, and System.SR.XPath_RtfInPathExpr.