2 // System.Runtime.Serialization.IFormatter
\r
5 // David Dawkins (david@dawkins.st)
\r
12 namespace System.Runtime.Serialization {
\r
15 /// Formatting for serialized objects</summary>
\r
16 public interface IFormatter {
\r
23 /// Get or set the SerializationBinder used
\r
24 /// for looking up types during deserialization</summary>
\r
25 SerializationBinder Binder
\r
32 /// Get or set the StreamingContext used for serialization
\r
33 /// and deserialization</summary>
\r
34 StreamingContext Context
\r
41 /// Get or set the SurrogateSelector used by the current
\r
42 /// formatter</summary>
\r
43 ISurrogateSelector SurrogateSelector
\r
50 /// Deserialize data from the specified stream, rebuilding
\r
51 /// the object hierarchy</summary>
\r
53 Stream serializationStream
\r
57 /// Serialize the specified object to the specified stream.
\r
58 /// Object may be the root of a graph of objects to be
\r
59 /// serialized</summary>
\r
61 Stream serializationStream,
\r