27 lines
1.1 KiB
C#
27 lines
1.1 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Runtime.Serialization
|
|
{
|
|
/// <summary>Specifies types that should be recognized by the <see cref="T:System.Runtime.Serialization.DataContractSerializer" /> when serializing or deserializing a given type.</summary>
|
|
// Token: 0x02000006 RID: 6
|
|
[Token(Token = "0x2000006")]
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
|
|
public sealed class KnownTypeAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.Serialization.KnownTypeAttribute" /> class with the specified type.</summary>
|
|
/// <param name="type">The <see cref="T:System.Type" /> that is included as a known type when serializing or deserializing data.</param>
|
|
// Token: 0x06000007 RID: 7 RVA: 0x000020B2 File Offset: 0x000002B2
|
|
[Token(Token = "0x6000007")]
|
|
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
|
public KnownTypeAttribute(Type type)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000007 RID: 7
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000007")]
|
|
private Type type;
|
|
}
|
|
}
|