96 lines
4.7 KiB
C#
96 lines
4.7 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Runtime.Serialization
|
|
{
|
|
/// <summary>Describes the source and destination of a given serialized stream, and provides an additional caller-defined context.</summary>
|
|
// Token: 0x0200047B RID: 1147
|
|
[Token(Token = "0x200047B")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public struct StreamingContext
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.Serialization.StreamingContext" /> class with a given context state.</summary>
|
|
/// <param name="state">A bitwise combination of the <see cref="T:System.Runtime.Serialization.StreamingContextStates" /> values that specify the source or destination context for this <see cref="T:System.Runtime.Serialization.StreamingContext" />.</param>
|
|
// Token: 0x0600276E RID: 10094 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600276E")]
|
|
[Address(RVA = "0x267D720", Offset = "0x267C720", VA = "0x18267D720")]
|
|
public StreamingContext(StreamingContextStates state)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.Serialization.StreamingContext" /> class with a given context state, and some additional information.</summary>
|
|
/// <param name="state">A bitwise combination of the <see cref="T:System.Runtime.Serialization.StreamingContextStates" /> values that specify the source or destination context for this <see cref="T:System.Runtime.Serialization.StreamingContext" />.</param>
|
|
/// <param name="additional">Any additional information to be associated with the <see cref="T:System.Runtime.Serialization.StreamingContext" />. This information is available to any object that implements <see cref="T:System.Runtime.Serialization.ISerializable" /> or any serialization surrogate. Most users do not need to set this parameter.</param>
|
|
// Token: 0x0600276F RID: 10095 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600276F")]
|
|
[Address(RVA = "0xA15870", Offset = "0xA14870", VA = "0x180A15870")]
|
|
public StreamingContext(StreamingContextStates state, object additional)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets context specified as part of the additional context.</summary>
|
|
/// <returns>The context specified as part of the additional context.</returns>
|
|
// Token: 0x170005B4 RID: 1460
|
|
// (get) Token: 0x06002770 RID: 10096 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170005B4")]
|
|
public object Context
|
|
{
|
|
[Token(Token = "0x6002770")]
|
|
[Address(RVA = "0x63E630", Offset = "0x63D630", VA = "0x18063E630")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Determines whether two <see cref="T:System.Runtime.Serialization.StreamingContext" /> instances contain the same values.</summary>
|
|
/// <param name="obj">An object to compare with the current instance.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the specified object is an instance of <see cref="T:System.Runtime.Serialization.StreamingContext" /> and equals the value of the current instance; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06002771 RID: 10097 RVA: 0x00017FD0 File Offset: 0x000161D0
|
|
[Token(Token = "0x6002771")]
|
|
[Address(RVA = "0x267D670", Offset = "0x267C670", VA = "0x18267D670", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns a hash code of this object.</summary>
|
|
/// <returns>The <see cref="T:System.Runtime.Serialization.StreamingContextStates" /> value that contains the source or destination of the serialization for this <see cref="T:System.Runtime.Serialization.StreamingContext" />.</returns>
|
|
// Token: 0x06002772 RID: 10098 RVA: 0x00017FE8 File Offset: 0x000161E8
|
|
[Token(Token = "0x6002772")]
|
|
[Address(RVA = "0x60FD70", Offset = "0x60ED70", VA = "0x18060FD70", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Gets the source or destination of the transmitted data.</summary>
|
|
/// <returns>During serialization, the destination of the transmitted data. During deserialization, the source of the data.</returns>
|
|
// Token: 0x170005B5 RID: 1461
|
|
// (get) Token: 0x06002773 RID: 10099 RVA: 0x00018000 File Offset: 0x00016200
|
|
[Token(Token = "0x170005B5")]
|
|
public StreamingContextStates State
|
|
{
|
|
[Token(Token = "0x6002773")]
|
|
[Address(RVA = "0x60FD70", Offset = "0x60ED70", VA = "0x18060FD70")]
|
|
get
|
|
{
|
|
return (StreamingContextStates)0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x040015B0 RID: 5552
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x40015B0")]
|
|
internal object m_additionalContext;
|
|
|
|
// Token: 0x040015B1 RID: 5553
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x40015B1")]
|
|
internal StreamingContextStates m_state;
|
|
}
|
|
}
|