34 lines
1.3 KiB
C#
34 lines
1.3 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Runtime.Serialization
|
|
{
|
|
/// <summary>Specifies that the type defines or implements a data contract and is serializable by a serializer, such as the <see cref="T:System.Runtime.Serialization.DataContractSerializer" />. To make their type serializable, type authors must define a data contract for their type.</summary>
|
|
// Token: 0x02000002 RID: 2
|
|
[Token(Token = "0x2000002")]
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum)]
|
|
public sealed class DataContractAttribute : Attribute
|
|
{
|
|
/// <summary>Gets or sets a value that indicates whether to preserve object reference data.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> to keep object reference data using standard XML; otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
|
|
// Token: 0x17000001 RID: 1
|
|
// (get) Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000001")]
|
|
public bool IsReference
|
|
{
|
|
[Token(Token = "0x6000001")]
|
|
[Address(RVA = "0x4944B0", Offset = "0x4934B0", VA = "0x1804944B0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000001 RID: 1
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000001")]
|
|
private bool isReference;
|
|
}
|
|
}
|