38 lines
1.7 KiB
C#
38 lines
1.7 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Xml.Serialization
|
|
{
|
|
/// <summary>Indicates that a public field or property represents an XML element when the <see cref="T:System.Xml.Serialization.XmlSerializer" /> serializes or deserializes the object that contains it.</summary>
|
|
// Token: 0x0200008D RID: 141
|
|
[Token(Token = "0x200008D")]
|
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
|
|
public class XmlElementAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Xml.Serialization.XmlElementAttribute" /> and specifies the name of the XML element and a derived type for the member to which the <see cref="T:System.Xml.Serialization.XmlElementAttribute" /> is applied. This member type is used when the <see cref="T:System.Xml.Serialization.XmlSerializer" /> serializes the object that contains it.</summary>
|
|
/// <param name="elementName">The XML element name of the serialized member. </param>
|
|
/// <param name="type">The <see cref="T:System.Type" /> of an object derived from the member's type. </param>
|
|
// Token: 0x0600058B RID: 1419 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600058B")]
|
|
[Address(RVA = "0x5C4960", Offset = "0x5C3760", VA = "0x1805C4960")]
|
|
public XmlElementAttribute(string elementName, Type type)
|
|
{
|
|
}
|
|
|
|
// Token: 0x040002A8 RID: 680
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40002A8")]
|
|
private string elementName;
|
|
|
|
// Token: 0x040002A9 RID: 681
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40002A9")]
|
|
private Type type;
|
|
|
|
// Token: 0x040002AA RID: 682
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40002AA")]
|
|
private int order;
|
|
}
|
|
}
|