You've already forked linux-packaging-mono
Imported Upstream version 4.4.2.4
Former-commit-id: 92904c9c5915c37244316e42ba99e7b934ed7ee2
This commit is contained in:
parent
589d484eee
commit
0b4a830db1
@@ -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 =
|
||||
|
||||
|
@@ -1,3 +1,3 @@
|
||||
TypeForwarders.cs
|
||||
AssemblyInfo.cs
|
||||
|
||||
XDocumentExtensions.cs
|
||||
|
@@ -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))]
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user