using System;
using Cpp2IlInjected;
namespace System.Runtime.Serialization
{
/// When applied to the member of a type, specifies that the member is part of a data contract and is serializable by the .
// Token: 0x02000003 RID: 3
[Token(Token = "0x2000003")]
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class DataMemberAttribute : Attribute
{
/// Gets or sets a data member name.
/// The name of the data member. The default is the name of the target that the attribute is applied to.
// Token: 0x17000002 RID: 2
// (get) Token: 0x06000002 RID: 2 RVA: 0x00002066 File Offset: 0x00000266
[Token(Token = "0x17000002")]
public string Name
{
[Token(Token = "0x6000002")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
}
/// Gets or sets the order of serialization and deserialization of a member.
/// The numeric order of serialization or deserialization.
// Token: 0x17000003 RID: 3
// (get) Token: 0x06000003 RID: 3 RVA: 0x0000206C File Offset: 0x0000026C
[Token(Token = "0x17000003")]
public int Order
{
[Token(Token = "0x6000003")]
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
get
{
return 0;
}
}
/// Gets or sets a value that instructs the serialization engine that the member must be present when reading or deserializing.
///
/// , if the member is required; otherwise, .
/// the member is not present.
// Token: 0x17000004 RID: 4
// (get) Token: 0x06000004 RID: 4 RVA: 0x00002084 File Offset: 0x00000284
[Token(Token = "0x17000004")]
public bool IsRequired
{
[Token(Token = "0x6000004")]
[Address(RVA = "0x751340", Offset = "0x750140", VA = "0x180751340")]
get
{
return default(bool);
}
}
/// Gets or sets a value that specifies whether to serialize the default value for a field or property being serialized.
///
/// if the default value for a member should be generated in the serialization stream; otherwise, . The default is .
// Token: 0x17000005 RID: 5
// (get) Token: 0x06000005 RID: 5 RVA: 0x0000209C File Offset: 0x0000029C
[Token(Token = "0x17000005")]
public bool EmitDefaultValue
{
[Token(Token = "0x6000005")]
[Address(RVA = "0x751330", Offset = "0x750130", VA = "0x180751330")]
get
{
return default(bool);
}
}
// Token: 0x04000002 RID: 2
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000002")]
private string name;
// Token: 0x04000003 RID: 3
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000003")]
private int order;
// Token: 0x04000004 RID: 4
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x4000004")]
private bool isRequired;
// Token: 0x04000005 RID: 5
[FieldOffset(Offset = "0x1D")]
[Token(Token = "0x4000005")]
private bool emitDefaultValue;
}
}