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

◆ AddSort() [1/2]

override void MS.Internal.Xml.XPath.CompiledXpathExpr.AddSort ( object expr,
IComparer comparer )
inlineinherited

Definition at line 93 of file CompiledXpathExpr.cs.

94 {
96 if (expr is string query)
97 {
98 evalQuery = new QueryBuilder().Build(query, out _needContext);
99 }
100 else
101 {
103 {
105 }
106 evalQuery = compiledXpathExpr.QueryTree;
107 }
108 SortQuery sortQuery = _query as SortQuery;
109 if (sortQuery == null)
110 {
111 sortQuery = (SortQuery)(_query = new SortQuery(_query));
112 }
113 sortQuery.AddSort(evalQuery, comparer);
114 }
CompiledXpathExpr(Query query, string expression, bool needContext)
static string Xp_BadQueryObject
Definition SR.cs:1252
Definition SR.cs:7
static XPathException Create(string res)

References MS.Internal.Xml.XPath.CompiledXpathExpr._needContext, MS.Internal.Xml.XPath.CompiledXpathExpr._query, MS.Internal.Xml.XPath.SortQuery.AddSort(), MS.Internal.Xml.XPath.QueryBuilder.Build(), System.comparer, System.Xml.XPath.XPathException.Create(), System.Xml.Dictionary, and System.SR.Xp_BadQueryObject.

Referenced by MS.Internal.Xml.XPath.CompiledXpathExpr.AddSort().