| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- //
- // System.Runtime.Serialization.IFormatter
- //
- // Author:
- // David Dawkins ([email protected])
- //
- // (C) David Dawkins
- //
- using System.IO;
- namespace System.Runtime.Serialization {
- /// <summary>
- /// Formatting for serialized objects</summary>
- public interface IFormatter {
- //
- // Properties
- //
- /// <summary>
- /// Get or set the SerializationBinder used
- /// for looking up types during deserialization</summary>
- SerializationBinder Binder
- {
- get;
- set;
- }
- /// <summary>
- /// Get or set the StreamingContext used for serialization
- /// and deserialization</summary>
- StreamingContext Context
- {
- get;
- set;
- }
- /// <summary>
- /// Get or set the SurrogateSelector used by the current
- /// formatter</summary>
- ISurrogateSelector SurrogateSelector
- {
- get;
- set;
- }
- /// <summary>
- /// Deserialize data from the specified stream, rebuilding
- /// the object hierarchy</summary>
- object Deserialize(
- Stream serializationStream
- );
- /// <summary>
- /// Serialize the specified object to the specified stream.
- /// Object may be the root of a graph of objects to be
- /// serialized</summary>
- void Serialize(
- Stream serializationStream,
- object graph
- );
- }
- }
|