206 lines
8.4 KiB
C#
206 lines
8.4 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: 0x0200007D RID: 125
|
|
[Token(Token = "0x200007D")]
|
|
public class XmlNamespaceManager : IXmlNamespaceResolver, IEnumerable
|
|
{
|
|
// Token: 0x0600052D RID: 1325 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600052D")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
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: 0x0600052E RID: 1326 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600052E")]
|
|
[Address(RVA = "0x474740", Offset = "0x473540", VA = "0x180474740")]
|
|
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: 0x170001B7 RID: 439
|
|
// (get) Token: 0x0600052F RID: 1327 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170001B7")]
|
|
public virtual XmlNameTable NameTable
|
|
{
|
|
[Token(Token = "0x600052F")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "7")]
|
|
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: 0x170001B8 RID: 440
|
|
// (get) Token: 0x06000530 RID: 1328 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170001B8")]
|
|
public virtual string DefaultNamespace
|
|
{
|
|
[Token(Token = "0x6000530")]
|
|
[Address(RVA = "0x474910", Offset = "0x473710", VA = "0x180474910", Slot = "8")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Pushes a namespace scope onto the stack.</summary>
|
|
// Token: 0x06000531 RID: 1329 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000531")]
|
|
[Address(RVA = "0x474730", Offset = "0x473530", VA = "0x180474730", Slot = "9")]
|
|
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: 0x06000532 RID: 1330 RVA: 0x00004158 File Offset: 0x00002358
|
|
[Token(Token = "0x6000532")]
|
|
[Address(RVA = "0x474630", Offset = "0x473430", VA = "0x180474630", Slot = "10")]
|
|
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: 0x06000533 RID: 1331 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000533")]
|
|
[Address(RVA = "0x473E00", Offset = "0x472C00", VA = "0x180473E00", Slot = "11")]
|
|
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: 0x06000534 RID: 1332 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000534")]
|
|
[Address(RVA = "0x4741C0", Offset = "0x472FC0", VA = "0x1804741C0", Slot = "12")]
|
|
public virtual IEnumerator GetEnumerator()
|
|
{
|
|
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: 0x06000535 RID: 1333 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000535")]
|
|
[Address(RVA = "0x4744F0", Offset = "0x4732F0", VA = "0x1804744F0", Slot = "13")]
|
|
public virtual string LookupNamespace(string prefix)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000536 RID: 1334 RVA: 0x00004170 File Offset: 0x00002370
|
|
[Token(Token = "0x6000536")]
|
|
[Address(RVA = "0x474300", Offset = "0x473100", VA = "0x180474300")]
|
|
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: 0x06000537 RID: 1335 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000537")]
|
|
[Address(RVA = "0x474550", Offset = "0x473350", VA = "0x180474550", Slot = "14")]
|
|
public virtual string LookupPrefix(string uri)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000262 RID: 610
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000262")]
|
|
private XmlNamespaceManager.NamespaceDeclaration[] nsdecls;
|
|
|
|
// Token: 0x04000263 RID: 611
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000263")]
|
|
private int lastDecl;
|
|
|
|
// Token: 0x04000264 RID: 612
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000264")]
|
|
private XmlNameTable nameTable;
|
|
|
|
// Token: 0x04000265 RID: 613
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000265")]
|
|
private int scopeId;
|
|
|
|
// Token: 0x04000266 RID: 614
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000266")]
|
|
private Dictionary<string, int> hashTable;
|
|
|
|
// Token: 0x04000267 RID: 615
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000267")]
|
|
private bool useHashtable;
|
|
|
|
// Token: 0x04000268 RID: 616
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000268")]
|
|
private string xml;
|
|
|
|
// Token: 0x04000269 RID: 617
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000269")]
|
|
private string xmlNs;
|
|
|
|
// Token: 0x0200007E RID: 126
|
|
[Token(Token = "0x200007E")]
|
|
private struct NamespaceDeclaration
|
|
{
|
|
// Token: 0x06000538 RID: 1336 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000538")]
|
|
[Address(RVA = "0x45BBA0", Offset = "0x45A9A0", VA = "0x18045BBA0")]
|
|
public void Set(string prefix, string uri, int scopeId, int previousNsIndex)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400026A RID: 618
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x400026A")]
|
|
public string prefix;
|
|
|
|
// Token: 0x0400026B RID: 619
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x400026B")]
|
|
public string uri;
|
|
|
|
// Token: 0x0400026C RID: 620
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400026C")]
|
|
public int scopeId;
|
|
|
|
// Token: 0x0400026D RID: 621
|
|
[FieldOffset(Offset = "0x14")]
|
|
[Token(Token = "0x400026D")]
|
|
public int previousNsIndex;
|
|
}
|
|
}
|
|
}
|