Imported Upstream version 4.4.2.4

Former-commit-id: 92904c9c5915c37244316e42ba99e7b934ed7ee2
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-07-21 09:40:10 +00:00
parent 589d484eee
commit 0b4a830db1
343 changed files with 9849 additions and 688 deletions

View File

@@ -12,7 +12,7 @@ LIBRARY = System.Xml.XPath.XDocument.dll
KEY_FILE = ../../msfinal.pub
SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699
LIB_REFS = System
LIB_MCS_FLAGS = $(SIGN_FLAGS) /r:mscorlib /r:System.Xml.Linq.dll
LIB_MCS_FLAGS = $(SIGN_FLAGS) /r:mscorlib /r:System.Xml.dll /r:System.Xml.Linq.dll
PLATFORM_DEBUG_FLAGS =

View File

@@ -1,3 +1,3 @@
TypeForwarders.cs
AssemblyInfo.cs
XDocumentExtensions.cs

View File

@@ -22,4 +22,3 @@
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Xml.XPath.Extensions))]
//Missing: [assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Xml.XPath.XDocumentExtensions))]

View File

@@ -0,0 +1,29 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Xml.Linq;
namespace System.Xml.XPath
{
public static class XDocumentExtensions
{
private class XDocumentNavigable : IXPathNavigable
{
private XNode _node;
public XDocumentNavigable(XNode n)
{
_node = n;
}
public XPathNavigator CreateNavigator()
{
return _node.CreateNavigator();
}
}
public static IXPathNavigable ToXPathNavigable(this XNode node)
{
return new XDocumentNavigable(node);
}
}
}