96 lines
3.3 KiB
C#
96 lines
3.3 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Runtime.Serialization
|
|
{
|
|
/// <summary>When applied to the member of a type, specifies that the member is part of a data contract and is serializable by the <see cref="T:System.Runtime.Serialization.DataContractSerializer" />.</summary>
|
|
// Token: 0x02000003 RID: 3
|
|
[Token(Token = "0x2000003")]
|
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
|
|
public sealed class DataMemberAttribute : Attribute
|
|
{
|
|
/// <summary>Gets or sets a data member name.</summary>
|
|
/// <returns>The name of the data member. The default is the name of the target that the attribute is applied to.</returns>
|
|
// 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 = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the order of serialization and deserialization of a member.</summary>
|
|
/// <returns>The numeric order of serialization or deserialization.</returns>
|
|
// 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 = "0x411540", Offset = "0x410540", VA = "0x180411540")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets a value that instructs the serialization engine that the member must be present when reading or deserializing.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" />, if the member is required; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.Runtime.Serialization.SerializationException">the member is not present.</exception>
|
|
// 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 = "0x891DD0", Offset = "0x890DD0", VA = "0x180891DD0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets a value that specifies whether to serialize the default value for a field or property being serialized.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the default value for a member should be generated in the serialization stream; otherwise, <see langword="false" />. The default is <see langword="true" />.</returns>
|
|
// 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 = "0xF94A50", Offset = "0xF93A50", VA = "0x180F94A50")]
|
|
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;
|
|
}
|
|
}
|