Files
27Aug2021-Cpp2IL-Dump/System.Xml/System/Xml/XPath/XPathItem.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

168 lines
7.8 KiB
C#
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Xml.Schema;
using Cpp2IlInjected;
namespace System.Xml.XPath
{
/// <summary>Represents an item in the XQuery 1.0 and XPath 2.0 Data Model.</summary>
// Token: 0x02000101 RID: 257
[Token(Token = "0x2000101")]
public abstract class XPathItem
{
/// <summary>When overridden in a derived class, gets the <see cref="T:System.Xml.Schema.XmlSchemaType" /> for the item.</summary>
/// <returns>The <see cref="T:System.Xml.Schema.XmlSchemaType" /> for the item.</returns>
// Token: 0x1700032F RID: 815
// (get) Token: 0x06000C3F RID: 3135
[Token(Token = "0x1700032F")]
public abstract XmlSchemaType XmlType
{
[Token(Token = "0x6000C3F")]
[Address(Slot = "4")]
get;
}
/// <summary>When overridden in a derived class, gets the <see langword="string" /> value of the item.</summary>
/// <returns>The <see langword="string" /> value of the item.</returns>
// Token: 0x17000330 RID: 816
// (get) Token: 0x06000C40 RID: 3136
[Token(Token = "0x17000330")]
public abstract string Value
{
[Token(Token = "0x6000C40")]
[Address(Slot = "5")]
get;
}
/// <summary>When overridden in a derived class, gets the current item as a boxed object of the most appropriate .NET Framework 2.0 type according to its schema type.</summary>
/// <returns>The current item as a boxed object of the most appropriate .NET Framework type.</returns>
// Token: 0x17000331 RID: 817
// (get) Token: 0x06000C41 RID: 3137
[Token(Token = "0x17000331")]
public abstract object TypedValue
{
[Token(Token = "0x6000C41")]
[Address(Slot = "6")]
get;
}
/// <summary>When overridden in a derived class, gets the .NET Framework 2.0 type of the item.</summary>
/// <returns>The .NET Framework type of the item. The default value is <see cref="T:System.String" />.</returns>
// Token: 0x17000332 RID: 818
// (get) Token: 0x06000C42 RID: 3138
[Token(Token = "0x17000332")]
public abstract Type ValueType
{
[Token(Token = "0x6000C42")]
[Address(Slot = "7")]
get;
}
/// <summary>When overridden in a derived class, gets the item's value as a <see cref="T:System.Boolean" />.</summary>
/// <returns>The item's value as a <see cref="T:System.Boolean" />.</returns>
/// <exception cref="T:System.FormatException">The item's value is not in the correct format for the <see cref="T:System.Boolean" /> type.</exception>
/// <exception cref="T:System.InvalidCastException">The attempted cast to <see cref="T:System.Boolean" /> is not valid.</exception>
// Token: 0x17000333 RID: 819
// (get) Token: 0x06000C43 RID: 3139
[Token(Token = "0x17000333")]
public abstract bool ValueAsBoolean
{
[Token(Token = "0x6000C43")]
[Address(Slot = "8")]
get;
}
/// <summary>When overridden in a derived class, gets the item's value as a <see cref="T:System.DateTime" />.</summary>
/// <returns>The item's value as a <see cref="T:System.DateTime" />.</returns>
/// <exception cref="T:System.FormatException">The item's value is not in the correct format for the <see cref="T:System.DateTime" /> type.</exception>
/// <exception cref="T:System.InvalidCastException">The attempted cast to <see cref="T:System.DateTime" /> is not valid.</exception>
// Token: 0x17000334 RID: 820
// (get) Token: 0x06000C44 RID: 3140
[Token(Token = "0x17000334")]
public abstract DateTime ValueAsDateTime
{
[Token(Token = "0x6000C44")]
[Address(Slot = "9")]
get;
}
/// <summary>When overridden in a derived class, gets the item's value as a <see cref="T:System.Double" />.</summary>
/// <returns>The item's value as a <see cref="T:System.Double" />.</returns>
/// <exception cref="T:System.FormatException">The item's value is not in the correct format for the <see cref="T:System.Double" /> type.</exception>
/// <exception cref="T:System.InvalidCastException">The attempted cast to <see cref="T:System.Double" /> is not valid.</exception>
/// <exception cref="T:System.OverflowException">The attempted cast resulted in an overflow.</exception>
// Token: 0x17000335 RID: 821
// (get) Token: 0x06000C45 RID: 3141
[Token(Token = "0x17000335")]
public abstract double ValueAsDouble
{
[Token(Token = "0x6000C45")]
[Address(Slot = "10")]
get;
}
/// <summary>When overridden in a derived class, gets the item's value as an <see cref="T:System.Int32" />.</summary>
/// <returns>The item's value as an <see cref="T:System.Int32" />.</returns>
/// <exception cref="T:System.FormatException">The item's value is not in the correct format for the <see cref="T:System.Int32" /> type.</exception>
/// <exception cref="T:System.InvalidCastException">The attempted cast to <see cref="T:System.Int32" /> is not valid.</exception>
/// <exception cref="T:System.OverflowException">The attempted cast resulted in an overflow.</exception>
// Token: 0x17000336 RID: 822
// (get) Token: 0x06000C46 RID: 3142
[Token(Token = "0x17000336")]
public abstract int ValueAsInt
{
[Token(Token = "0x6000C46")]
[Address(Slot = "11")]
get;
}
/// <summary>When overridden in a derived class, gets the item's value as an <see cref="T:System.Int64" />.</summary>
/// <returns>The item's value as an <see cref="T:System.Int64" />.</returns>
/// <exception cref="T:System.FormatException">The item's value is not in the correct format for the <see cref="T:System.Int64" /> type.</exception>
/// <exception cref="T:System.InvalidCastException">The attempted cast to <see cref="T:System.Int64" /> is not valid.</exception>
/// <exception cref="T:System.OverflowException">The attempted cast resulted in an overflow.</exception>
// Token: 0x17000337 RID: 823
// (get) Token: 0x06000C47 RID: 3143
[Token(Token = "0x17000337")]
public abstract long ValueAsLong
{
[Token(Token = "0x6000C47")]
[Address(Slot = "12")]
get;
}
/// <summary>Returns the item's value as the specified type.</summary>
/// <param name="returnType">The type to return the item value as.</param>
/// <returns>The value of the item as the type requested.</returns>
/// <exception cref="T:System.FormatException">The item's value is not in the correct format for the target type.</exception>
/// <exception cref="T:System.InvalidCastException">The attempted cast is not valid.</exception>
/// <exception cref="T:System.OverflowException">The attempted cast resulted in an overflow.</exception>
// Token: 0x06000C48 RID: 3144 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C48")]
[Address(RVA = "0x679770", Offset = "0x678770", VA = "0x180679770", Slot = "13")]
public virtual object ValueAs(Type returnType)
{
return null;
}
/// <summary>When overridden in a derived class, returns the item's value as the type specified using the <see cref="T:System.Xml.IXmlNamespaceResolver" /> object specified to resolve namespace prefixes.</summary>
/// <param name="returnType">The type to return the item's value as.</param>
/// <param name="nsResolver">The <see cref="T:System.Xml.IXmlNamespaceResolver" /> object used to resolve namespace prefixes.</param>
/// <returns>The value of the item as the type requested.</returns>
/// <exception cref="T:System.FormatException">The item's value is not in the correct format for the target type.</exception>
/// <exception cref="T:System.InvalidCastException">The attempted cast is not valid.</exception>
/// <exception cref="T:System.OverflowException">The attempted cast resulted in an overflow.</exception>
// Token: 0x06000C49 RID: 3145
[Token(Token = "0x6000C49")]
[Address(Slot = "14")]
public abstract object ValueAs(Type returnType, IXmlNamespaceResolver nsResolver);
/// <summary>Initializes a new instance of the <see cref="T:System.Xml.XPath.XPathItem" /> class.</summary>
// Token: 0x06000C4A RID: 3146 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C4A")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected XPathItem()
{
}
}
}