Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

36 lines
2.0 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Runtime.Serialization
{
/// <summary>Implements a serialization surrogate selector that allows one object to perform serialization and deserialization of another.</summary>
// Token: 0x02000442 RID: 1090
[Token(Token = "0x2000442")]
[ComVisible(true)]
public interface ISerializationSurrogate
{
/// <summary>Populates the provided <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed to serialize the object.</summary>
/// <param name="obj">The object to serialize.</param>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> to populate with data.</param>
/// <param name="context">The destination (see <see cref="T:System.Runtime.Serialization.StreamingContext" />) for this serialization.</param>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
// Token: 0x0600248F RID: 9359
[Token(Token = "0x600248F")]
[Address(Slot = "0")]
void GetObjectData(object obj, SerializationInfo info, StreamingContext context);
/// <summary>Populates the object using the information in the <see cref="T:System.Runtime.Serialization.SerializationInfo" />.</summary>
/// <param name="obj">The object to populate.</param>
/// <param name="info">The information to populate the object.</param>
/// <param name="context">The source from which the object is deserialized.</param>
/// <param name="selector">The surrogate selector where the search for a compatible surrogate begins.</param>
/// <returns>The populated deserialized object.</returns>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
// Token: 0x06002490 RID: 9360
[Token(Token = "0x6002490")]
[Address(Slot = "1")]
object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector);
}
}