128 lines
4.6 KiB
C#
128 lines
4.6 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using Cpp2IlInjected;
|
|
using MS.Internal.Xml.Linq.ComponentModel;
|
|
|
|
namespace System.Xml.Linq
|
|
{
|
|
/// <summary>Represents an XML attribute.</summary>
|
|
// Token: 0x0200001A RID: 26
|
|
[Token(Token = "0x200001A")]
|
|
[TypeDescriptionProvider(typeof(XTypeDescriptionProvider<XAttribute>))]
|
|
public class XAttribute : XObject
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Xml.Linq.XAttribute" /> class from the specified name and value.</summary>
|
|
/// <param name="name">The <see cref="T:System.Xml.Linq.XName" /> of the attribute.</param>
|
|
/// <param name="value">An <see cref="T:System.Object" /> containing the value of the attribute.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="name" /> or <paramref name="value" /> parameter is <see langword="null" />.</exception>
|
|
// Token: 0x06000082 RID: 130 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000082")]
|
|
[Address(RVA = "0x11CA840", Offset = "0x11C9840", VA = "0x1811CA840")]
|
|
public XAttribute(XName name, object value)
|
|
{
|
|
}
|
|
|
|
/// <summary>Determines if this attribute is a namespace declaration.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if this attribute is a namespace declaration; otherwise <see langword="false" />.</returns>
|
|
// Token: 0x17000027 RID: 39
|
|
// (get) Token: 0x06000083 RID: 131 RVA: 0x000022C8 File Offset: 0x000004C8
|
|
[Token(Token = "0x17000027")]
|
|
public bool IsNamespaceDeclaration
|
|
{
|
|
[Token(Token = "0x6000083")]
|
|
[Address(RVA = "0x11CA920", Offset = "0x11C9920", VA = "0x1811CA920")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the expanded name of this attribute.</summary>
|
|
/// <returns>An <see cref="T:System.Xml.Linq.XName" /> containing the name of this attribute.</returns>
|
|
// Token: 0x17000028 RID: 40
|
|
// (get) Token: 0x06000084 RID: 132 RVA: 0x00002052 File Offset: 0x00000252
|
|
[Token(Token = "0x17000028")]
|
|
public XName Name
|
|
{
|
|
[Token(Token = "0x6000084")]
|
|
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the node type for this node.</summary>
|
|
/// <returns>The node type. For <see cref="T:System.Xml.Linq.XAttribute" /> objects, this value is <see cref="F:System.Xml.XmlNodeType.Attribute" />.</returns>
|
|
// Token: 0x17000029 RID: 41
|
|
// (get) Token: 0x06000085 RID: 133 RVA: 0x000022E0 File Offset: 0x000004E0
|
|
[Token(Token = "0x17000029")]
|
|
public override XmlNodeType NodeType
|
|
{
|
|
[Token(Token = "0x6000085")]
|
|
[Address(RVA = "0x4E86A0", Offset = "0x4E76A0", VA = "0x1804E86A0", Slot = "6")]
|
|
get
|
|
{
|
|
return XmlNodeType.None;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the value of this attribute.</summary>
|
|
/// <returns>A <see cref="T:System.String" /> containing the value of this attribute.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">When setting, the <paramref name="value" /> is <see langword="null" />.</exception>
|
|
// Token: 0x1700002A RID: 42
|
|
// (get) Token: 0x06000086 RID: 134 RVA: 0x00002052 File Offset: 0x00000252
|
|
[Token(Token = "0x1700002A")]
|
|
public string Value
|
|
{
|
|
[Token(Token = "0x6000086")]
|
|
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Converts the current <see cref="T:System.Xml.Linq.XAttribute" /> object to a string representation.</summary>
|
|
/// <returns>A <see cref="T:System.String" /> containing the XML text representation of an attribute and its value.</returns>
|
|
// Token: 0x06000087 RID: 135 RVA: 0x00002052 File Offset: 0x00000252
|
|
[Token(Token = "0x6000087")]
|
|
[Address(RVA = "0x11CA150", Offset = "0x11C9150", VA = "0x1811CA150", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000088 RID: 136 RVA: 0x00002052 File Offset: 0x00000252
|
|
[Token(Token = "0x6000088")]
|
|
[Address(RVA = "0x11CA000", Offset = "0x11C9000", VA = "0x1811CA000")]
|
|
internal string GetPrefixOfNamespace(XNamespace ns)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000089 RID: 137 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000089")]
|
|
[Address(RVA = "0x11CA4D0", Offset = "0x11C94D0", VA = "0x1811CA4D0")]
|
|
private static void ValidateAttribute(XName name, string value)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000041 RID: 65
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000041")]
|
|
internal XAttribute next;
|
|
|
|
// Token: 0x04000042 RID: 66
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000042")]
|
|
internal XName name;
|
|
|
|
// Token: 0x04000043 RID: 67
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000043")]
|
|
internal string value;
|
|
}
|
|
}
|