217 lines
9.1 KiB
C#
217 lines
9.1 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Xml
|
|
{
|
|
/// <summary>Resolves, adds, and removes namespaces to a collection and provides scope management for these namespaces. </summary>
|
|
// Token: 0x020000F5 RID: 245
|
|
[Token(Token = "0x20000F5")]
|
|
public class XmlNamespaceManager : IXmlNamespaceResolver, IEnumerable
|
|
{
|
|
// Token: 0x06000BFC RID: 3068 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000BFC")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
internal XmlNamespaceManager()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Xml.XmlNamespaceManager" /> class with the specified <see cref="T:System.Xml.XmlNameTable" />.</summary>
|
|
/// <param name="nameTable">The <see cref="T:System.Xml.XmlNameTable" /> to use. </param>
|
|
/// <exception cref="T:System.NullReferenceException">
|
|
/// <see langword="null" /> is passed to the constructor </exception>
|
|
// Token: 0x06000BFD RID: 3069 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000BFD")]
|
|
[Address(RVA = "0x949990", Offset = "0x948990", VA = "0x180949990")]
|
|
public XmlNamespaceManager(XmlNameTable nameTable)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the <see cref="T:System.Xml.XmlNameTable" /> associated with this object.</summary>
|
|
/// <returns>The <see cref="T:System.Xml.XmlNameTable" /> used by this object.</returns>
|
|
// Token: 0x17000327 RID: 807
|
|
// (get) Token: 0x06000BFE RID: 3070 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000327")]
|
|
public virtual XmlNameTable NameTable
|
|
{
|
|
[Token(Token = "0x6000BFE")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the namespace URI for the default namespace.</summary>
|
|
/// <returns>Returns the namespace URI for the default namespace, or String.Empty if there is no default namespace.</returns>
|
|
// Token: 0x17000328 RID: 808
|
|
// (get) Token: 0x06000BFF RID: 3071 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000328")]
|
|
public virtual string DefaultNamespace
|
|
{
|
|
[Token(Token = "0x6000BFF")]
|
|
[Address(RVA = "0x949B60", Offset = "0x948B60", VA = "0x180949B60", Slot = "9")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Pushes a namespace scope onto the stack.</summary>
|
|
// Token: 0x06000C00 RID: 3072 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000C00")]
|
|
[Address(RVA = "0x663250", Offset = "0x662250", VA = "0x180663250", Slot = "10")]
|
|
public virtual void PushScope()
|
|
{
|
|
}
|
|
|
|
/// <summary>Pops a namespace scope off the stack.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if there are namespace scopes left on the stack; <see langword="false" /> if there are no more namespaces to pop.</returns>
|
|
// Token: 0x06000C01 RID: 3073 RVA: 0x000067E0 File Offset: 0x000049E0
|
|
[Token(Token = "0x6000C01")]
|
|
[Address(RVA = "0x949890", Offset = "0x948890", VA = "0x180949890", Slot = "11")]
|
|
public virtual bool PopScope()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Adds the given namespace to the collection.</summary>
|
|
/// <param name="prefix">The prefix to associate with the namespace being added. Use String.Empty to add a default namespace.
|
|
/// NoteIf the <see cref="T:System.Xml.XmlNamespaceManager" /> will be used for resolving namespaces in an XML Path Language (XPath) expression, a prefix must be specified. If an XPath expression does not include a prefix, it is assumed that the namespace Uniform Resource Identifier (URI) is the empty namespace. For more information about XPath expressions and the <see cref="T:System.Xml.XmlNamespaceManager" />, refer to the <see cref="M:System.Xml.XmlNode.SelectNodes(System.String)" /> and <see cref="M:System.Xml.XPath.XPathExpression.SetContext(System.Xml.XmlNamespaceManager)" /> methods.</param>
|
|
/// <param name="uri">The namespace to add. </param>
|
|
/// <exception cref="T:System.ArgumentException">The value for <paramref name="prefix" /> is "xml" or "xmlns". </exception>
|
|
/// <exception cref="T:System.ArgumentNullException">The value for <paramref name="prefix" /> or <paramref name="uri" /> is <see langword="null" />. </exception>
|
|
// Token: 0x06000C02 RID: 3074 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000C02")]
|
|
[Address(RVA = "0x948ED0", Offset = "0x947ED0", VA = "0x180948ED0", Slot = "12")]
|
|
public virtual void AddNamespace(string prefix, string uri)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns an enumerator to use to iterate through the namespaces in the <see cref="T:System.Xml.XmlNamespaceManager" />.</summary>
|
|
/// <returns>An <see cref="T:System.Collections.IEnumerator" /> containing the prefixes stored by the <see cref="T:System.Xml.XmlNamespaceManager" />.</returns>
|
|
// Token: 0x06000C03 RID: 3075 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000C03")]
|
|
[Address(RVA = "0x949290", Offset = "0x948290", VA = "0x180949290", Slot = "13")]
|
|
public virtual IEnumerator GetEnumerator()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets a collection of namespace names keyed by prefix which can be used to enumerate the namespaces currently in scope.</summary>
|
|
/// <param name="scope">An enumeration value that specifies the type of namespace nodes to return.</param>
|
|
/// <returns>A collection of namespace and prefix pairs currently in scope.</returns>
|
|
// Token: 0x06000C04 RID: 3076 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000C04")]
|
|
[Address(RVA = "0x9493D0", Offset = "0x9483D0", VA = "0x1809493D0", Slot = "14")]
|
|
public virtual IDictionary<string, string> GetNamespacesInScope(XmlNamespaceScope scope)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the namespace URI for the specified prefix.</summary>
|
|
/// <param name="prefix">The prefix whose namespace URI you want to resolve. To match the default namespace, pass String.Empty. </param>
|
|
/// <returns>Returns the namespace URI for <paramref name="prefix" /> or <see langword="null" /> if there is no mapped namespace. The returned string is atomized.For more information on atomized strings, see the <see cref="T:System.Xml.XmlNameTable" /> class.</returns>
|
|
// Token: 0x06000C05 RID: 3077 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000C05")]
|
|
[Address(RVA = "0x949750", Offset = "0x948750", VA = "0x180949750", Slot = "15")]
|
|
public virtual string LookupNamespace(string prefix)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000C06 RID: 3078 RVA: 0x000067F8 File Offset: 0x000049F8
|
|
[Token(Token = "0x6000C06")]
|
|
[Address(RVA = "0x949560", Offset = "0x948560", VA = "0x180949560")]
|
|
private int LookupNamespaceDecl(string prefix)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Finds the prefix declared for the given namespace URI.</summary>
|
|
/// <param name="uri">The namespace to resolve for the prefix. </param>
|
|
/// <returns>The matching prefix. If there is no mapped prefix, the method returns String.Empty. If a null value is supplied, then <see langword="null" /> is returned.</returns>
|
|
// Token: 0x06000C07 RID: 3079 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000C07")]
|
|
[Address(RVA = "0x9497B0", Offset = "0x9487B0", VA = "0x1809497B0", Slot = "16")]
|
|
public virtual string LookupPrefix(string uri)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000630 RID: 1584
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000630")]
|
|
private XmlNamespaceManager.NamespaceDeclaration[] nsdecls;
|
|
|
|
// Token: 0x04000631 RID: 1585
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000631")]
|
|
private int lastDecl;
|
|
|
|
// Token: 0x04000632 RID: 1586
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000632")]
|
|
private XmlNameTable nameTable;
|
|
|
|
// Token: 0x04000633 RID: 1587
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000633")]
|
|
private int scopeId;
|
|
|
|
// Token: 0x04000634 RID: 1588
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000634")]
|
|
private Dictionary<string, int> hashTable;
|
|
|
|
// Token: 0x04000635 RID: 1589
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000635")]
|
|
private bool useHashtable;
|
|
|
|
// Token: 0x04000636 RID: 1590
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000636")]
|
|
private string xml;
|
|
|
|
// Token: 0x04000637 RID: 1591
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000637")]
|
|
private string xmlNs;
|
|
|
|
// Token: 0x020000F6 RID: 246
|
|
[Token(Token = "0x20000F6")]
|
|
private struct NamespaceDeclaration
|
|
{
|
|
// Token: 0x06000C08 RID: 3080 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000C08")]
|
|
[Address(RVA = "0x9365B0", Offset = "0x9355B0", VA = "0x1809365B0")]
|
|
public void Set(string prefix, string uri, int scopeId, int previousNsIndex)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000638 RID: 1592
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4000638")]
|
|
public string prefix;
|
|
|
|
// Token: 0x04000639 RID: 1593
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4000639")]
|
|
public string uri;
|
|
|
|
// Token: 0x0400063A RID: 1594
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400063A")]
|
|
public int scopeId;
|
|
|
|
// Token: 0x0400063B RID: 1595
|
|
[FieldOffset(Offset = "0x14")]
|
|
[Token(Token = "0x400063B")]
|
|
public int previousNsIndex;
|
|
}
|
|
}
|
|
}
|