59 references to XmlNodeOrder
dotnet-svcutil-lib (59)
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathDocumentNavigator.cs (5)
779
public override
XmlNodeOrder
ComparePosition(XPathNavigator other)
797
return
XmlNodeOrder
.Same;
799
return (locThis < locThat) ?
XmlNodeOrder
.Before :
XmlNodeOrder
.After;
802
return
XmlNodeOrder
.Unknown;
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXPathNavigator.cs (15)
1322
private
XmlNodeOrder
Compare(XmlNode node1, XmlNode node2)
1342
return
XmlNodeOrder
.Before;
1346
return
XmlNodeOrder
.After;
1350
return
XmlNodeOrder
.Unknown;
1354
return
XmlNodeOrder
.Before;
1359
return
XmlNodeOrder
.After;
1368
return
XmlNodeOrder
.After;
1371
return
XmlNodeOrder
.Before;
1374
public override
XmlNodeOrder
ComparePosition(XPathNavigator other)
1379
return
XmlNodeOrder
.Unknown;
1388
return
XmlNodeOrder
.Same;
1406
return
XmlNodeOrder
.Unknown;
1427
return
XmlNodeOrder
.Before;
1441
return
XmlNodeOrder
.After;
1459
return
XmlNodeOrder
.Unknown;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheChildrenQuery.cs (3)
103
XmlNodeOrder
order = CompareNodes(_lastNode, currentNode);
104
Debug.Assert(order ==
XmlNodeOrder
.Before, "Algorith error. Nodes expected to be DocOrderDistinct");
122
if (CompareNodes(currentNode, _nextInput) ==
XmlNodeOrder
.After)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Query.cs (15)
123
case
XmlNodeOrder
.Same:
125
case
XmlNodeOrder
.Before:
139
case
XmlNodeOrder
.Same:
141
case
XmlNodeOrder
.Before:
160
public static
XmlNodeOrder
CompareNodes(XPathNavigator l, XPathNavigator r)
162
XmlNodeOrder
cmp = l.ComparePosition(r);
163
if (cmp ==
XmlNodeOrder
.Unknown)
176
cmpBase < 0 ?
XmlNodeOrder
.Before :
177
cmpBase > 0 ?
XmlNodeOrder
.After :
178
/*default*/
XmlNodeOrder
.Unknown
190
XmlNodeOrder
cmp;
194
Debug.Assert(cmp ==
XmlNodeOrder
.Before, "Algorithm error: Insert()");
199
Debug.Assert(cmp ==
XmlNodeOrder
.Before, "Algorithm error: Insert()");
228
XmlNodeOrder
cmp = CompareNodes(last, curr);
229
Debug.Assert(cmp ==
XmlNodeOrder
.Before, "AssertQuery(): Wrong node order");
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\UnionExpr.cs (3)
91
XmlNodeOrder
order = 0;
129
if (order ==
XmlNodeOrder
.Before)
133
else if (order ==
XmlNodeOrder
.After)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathMultyIterator.cs (3)
105
XmlNodeOrder
order = Query.CompareNodes(it.Current, arr[item + 1].Current);
106
if (order ==
XmlNodeOrder
.Before)
110
if (order ==
XmlNodeOrder
.After)
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (12)
979
public virtual
XmlNodeOrder
ComparePosition(XPathNavigator nav)
983
return
XmlNodeOrder
.Unknown;
987
return
XmlNodeOrder
.Same;
1003
return
XmlNodeOrder
.After;
1014
return
XmlNodeOrder
.Before;
1023
return
XmlNodeOrder
.Unknown;
1912
private
XmlNodeOrder
CompareSiblings(XPathNavigator n1, XPathNavigator n2)
1941
return
XmlNodeOrder
.Before;
1954
return
XmlNodeOrder
.Before;
1967
return
XmlNodeOrder
.Before;
1973
return cmp < 0 ?
XmlNodeOrder
.Before :
XmlNodeOrder
.After;
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorReader.cs (3)
1318
public override
XmlNodeOrder
ComparePosition(XPathNavigator other)
1321
return ((object)this == (object)other) ?
XmlNodeOrder
.Same :
XmlNodeOrder
.Unknown;