X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Xml.Linq%2FSystem.Xml.XPath%2FExtensions.cs;h=10a91c3030d7dc2f91ea65d0b10cc1d33f9be4b1;hb=5d250224236e6a6cd7022ba9cdb93a5fdb842004;hp=0f2bdeee6d5ff480ccd4e95d8062ea29f2a680d2;hpb=3d43cfdfccc1aa699e599c39f91fb41231304da9;p=mono.git 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 0f2bdeee6d5..10a91c3030d 100644 --- 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. // -#if !MOONLIGHT - using System; using System.Collections; using System.Collections.Generic; @@ -59,11 +57,11 @@ namespace System.Xml.XPath return GetUnderlyingXObjects((XPathNodeIterator) navigationResult); } - private static IEnumerable GetUnderlyingXObjects(XPathNodeIterator nodeIterator) + private static IEnumerable GetUnderlyingXObjects(XPathNodeIterator nodeIterator) { foreach (XPathNavigator nav in nodeIterator) { - yield return (XObject)(nav.UnderlyingObject); + yield return nav.UnderlyingObject; } } @@ -95,5 +93,3 @@ namespace System.Xml.XPath } } } - -#endif