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

◆ Evaluate()

override object MS.Internal.Xml.XPath.FunctionQuery.Evaluate ( XPathNodeIterator nodeIterator)
inline

Definition at line 73 of file FunctionQuery.cs.

74 {
75 if (xsltContext == null)
76 {
78 }
79 object[] array = new object[_args.Count];
80 for (int i = 0; i < _args.Count; i++)
81 {
82 array[i] = _args[i].Evaluate(nodeIterator);
84 {
85 array[i] = new XPathSelectionIterator(nodeIterator.Current, _args[i]);
86 }
87 }
88 try
89 {
91 }
93 {
95 }
96 }
readonly IList< Query > _args
static string Xp_FunctionFailed
Definition SR.cs:1262
static string Xp_NoContext
Definition SR.cs:1256
Definition SR.cs:7
static XPathException Create(string res)
object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)

References MS.Internal.Xml.XPath.FunctionQuery._args, MS.Internal.Xml.XPath.FunctionQuery._function, System.array, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.XPath.XPathException.Create(), System.Xml.Xsl.IXsltContextFunction.Invoke(), MS.Internal.Xml.XPath.ExtensionQuery.ProcessResult(), System.SR.Xp_FunctionFailed, System.SR.Xp_NoContext, and MS.Internal.Xml.XPath.ExtensionQuery.xsltContext.

Referenced by MS.Internal.Xml.XPath.FunctionQuery.MatchNode().