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

◆ EvaluateIterator< T >()

IEnumerable< T > System.Xml.XPath.XPathEvaluator.EvaluateIterator< T > ( XPathNodeIterator result)
inlineprivate

Definition at line 25 of file XPathEvaluator.cs.

26 {
27 foreach (XPathNavigator item in result)
28 {
29 object r = item.UnderlyingObject;
30 if (!(r is T))
31 {
33 }
34 yield return (T)r;
35 XText t = r as XText;
36 if (t == null || t.GetParent() == null)
37 {
38 continue;
39 }
40 do
41 {
43 if (t == null)
44 {
45 break;
46 }
47 yield return (T)(object)t;
48 }
49 while (t != t.GetParent().LastNode);
50 }
51 }
static string InvalidOperation_UnexpectedEvaluation
Definition SR.cs:72
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.Xml.Dictionary, System.SR.Format(), System.SR.InvalidOperation_UnexpectedEvaluation, and System.item.

Referenced by System.Xml.XPath.XPathEvaluator.Evaluate< T >().