m
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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: 0x0200045E RID: 1118
|
||||
[Token(Token = "0x200045E")]
|
||||
[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: 0x0600269B RID: 9883
|
||||
[Token(Token = "0x600269B")]
|
||||
[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: 0x0600269C RID: 9884
|
||||
[Token(Token = "0x600269C")]
|
||||
[Address(Slot = "1")]
|
||||
object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user