Revert previous XPath fix. Fix is rather needed in XPathNodeIterator.GetEnumerator().
authorAtsushi Eno <atsushi@ximian.com>
Thu, 8 Mar 2012 09:11:30 +0000 (18:11 +0900)
committerAtsushi Eno <atsushi@ximian.com>
Thu, 8 Mar 2012 09:11:30 +0000 (18:11 +0900)
commitfe6e513cf763d6fd9fe209cdcc334aec0e0a120c
treea871a06ad7c84be9b89a6f14f9c9ddbc63a60fff
parent11b18898e82002bc7f86a7e39c9564720dbc5865
Revert previous XPath fix. Fix is rather needed in XPathNodeIterator.GetEnumerator().

The thing is, XPathNodeIterator itself is stateful and does not behave
like IEnumerable, thus GetEnumerator() should not iterate nodes within
*itself*. Rather, it should have returned a clone of it.

After all we didn't have to damage performance to fix bug #3705, which is nice.
mcs/class/System.XML/Makefile
mcs/class/System.XML/System.Xml.XPath/Iterator.cs
mcs/class/System.XML/System.Xml.XPath/XPathNodeIterator.cs
mcs/class/System.XML/Test/System.Xml.XPath/SelectNodesTests.cs