projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reduce memory use on Attribute() caused by Attributes().
[mono.git]
/
mcs
/
class
/
System.Xml.Linq
/
System.Xml.XPath
/
Extensions.cs
diff --git
a/mcs/class/System.Xml.Linq/System.Xml.XPath/Extensions.cs
b/mcs/class/System.Xml.Linq/System.Xml.XPath/Extensions.cs
index 0f2bdeee6d5ff480ccd4e95d8062ea29f2a680d2..10a91c3030d7dc2f91ea65d0b10cc1d33f9be4b1 100644
(file)
--- a/
mcs/class/System.Xml.Linq/System.Xml.XPath/Extensions.cs
+++ b/
mcs/class/System.Xml.Linq/System.Xml.XPath/Extensions.cs
@@
-24,8
+24,6
@@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOONLIGHT
-
using System;
using System.Collections;
using System.Collections.Generic;
using System;
using System.Collections;
using System.Collections.Generic;
@@
-59,11
+57,11
@@
namespace System.Xml.XPath
return GetUnderlyingXObjects((XPathNodeIterator) navigationResult);
}
return GetUnderlyingXObjects((XPathNodeIterator) navigationResult);
}
- private static IEnumerable<
XO
bject> GetUnderlyingXObjects(XPathNodeIterator nodeIterator)
+ private static IEnumerable<
o
bject> GetUnderlyingXObjects(XPathNodeIterator nodeIterator)
{
foreach (XPathNavigator nav in nodeIterator)
{
{
foreach (XPathNavigator nav in nodeIterator)
{
- yield return
(XObject)(nav.UnderlyingObject)
;
+ yield return
nav.UnderlyingObject
;
}
}
}
}
@@
-95,5
+93,3
@@
namespace System.Xml.XPath
}
}
}
}
}
}
-
-#endif