Files
Dec2017-Script-Dump/mscorlib/System/Runtime/Serialization/IFormatter.cs
T
2026-06-04 11:42:34 +02:00

46 lines
2.5 KiB
C#

using System;
using System.IO;
using System.Runtime.InteropServices;
namespace System.Runtime.Serialization
{
/// <summary>Provides functionality for formatting serialized objects.</summary>
// Token: 0x0200047C RID: 1148
[ComVisible(true)]
public interface IFormatter
{
/// <summary>Gets or sets the <see cref="T:System.Runtime.Serialization.SerializationBinder" /> that performs type lookups during deserialization.</summary>
/// <returns>The <see cref="T:System.Runtime.Serialization.SerializationBinder" /> that performs type lookups during deserialization.</returns>
// Token: 0x17000897 RID: 2199
// (get) Token: 0x06002BE2 RID: 11234
// (set) Token: 0x06002BE3 RID: 11235
SerializationBinder Binder { get; set; }
/// <summary>Gets or sets the <see cref="T:System.Runtime.Serialization.StreamingContext" /> used for serialization and deserialization.</summary>
/// <returns>The <see cref="T:System.Runtime.Serialization.StreamingContext" /> used for serialization and deserialization.</returns>
// Token: 0x17000898 RID: 2200
// (get) Token: 0x06002BE4 RID: 11236
// (set) Token: 0x06002BE5 RID: 11237
StreamingContext Context { get; set; }
/// <summary>Gets or sets the <see cref="T:System.Runtime.Serialization.SurrogateSelector" /> used by the current formatter.</summary>
/// <returns>The <see cref="T:System.Runtime.Serialization.SurrogateSelector" /> used by this formatter.</returns>
// Token: 0x17000899 RID: 2201
// (get) Token: 0x06002BE6 RID: 11238
// (set) Token: 0x06002BE7 RID: 11239
ISurrogateSelector SurrogateSelector { get; set; }
/// <summary>Deserializes the data on the provided stream and reconstitutes the graph of objects.</summary>
/// <returns>The top object of the deserialized graph.</returns>
/// <param name="serializationStream">The stream that contains the data to deserialize. </param>
// Token: 0x06002BE8 RID: 11240
object Deserialize(Stream serializationStream);
/// <summary>Serializes an object, or graph of objects with the given root to the provided stream.</summary>
/// <param name="serializationStream">The stream where the formatter puts the serialized data. This stream can reference a variety of backing stores (such as files, network, memory, and so on). </param>
/// <param name="graph">The object, or root of the object graph, to serialize. All child objects of this root object are automatically serialized. </param>
// Token: 0x06002BE9 RID: 11241
void Serialize(Stream serializationStream, object graph);
}
}