BinaryFormatter
- it has many 'features' that simply don't work well between versions (and certainly not between platforms).Customer
- it could any type with matching layout via the attributes). Indeed, in most cases it'll load easily into any other protobuf implementation - Java, C++, etc.(ud800
) in between the two Test
words:Testud800Test
Byte Array Value | Character |
---|---|
84 | T |
101 | e |
115 | s |
116 | t |
55296 | ud800 |
84 | T |
101 | e |
115 | s |
116 | t |
Byte Array Value | Character |
---|---|
84 | T |
101 | e |
115 | s |
116 | t |
84 | T |
101 | e |
115 | s |
116 | t |
BinaryFormatter()BinaryFormatter()BinaryFormatter()BinaryFormatter() | Initializes a new instance of the BinaryFormatter class with default values. |
BinaryFormatter(ISurrogateSelector, StreamingContext)BinaryFormatter(ISurrogateSelector, StreamingContext)BinaryFormatter(ISurrogateSelector, StreamingContext)BinaryFormatter(ISurrogateSelector, StreamingContext) | Initializes a new instance of the BinaryFormatter class with a given surrogate selector and streaming context. |
AssemblyFormatAssemblyFormatAssemblyFormatAssemblyFormat | Gets or sets the behavior of the deserializer with regards to finding and loading assemblies. |
BinderBinderBinderBinder | Gets or sets an object of type SerializationBinder that controls the binding of a serialized object to a type. |
ContextContextContextContext | Gets or sets the StreamingContext for this formatter. |
FilterLevelFilterLevelFilterLevelFilterLevel | Gets or sets the TypeFilterLevel of automatic deserialization the BinaryFormatter performs. |
SurrogateSelectorSurrogateSelectorSurrogateSelectorSurrogateSelector | Gets or sets a ISurrogateSelector that controls type substitution during serialization and deserialization. |
TypeFormatTypeFormatTypeFormatTypeFormat | Gets or sets the format in which type descriptions are laid out in the serialized stream. |
Deserialize(Stream)Deserialize(Stream)Deserialize(Stream)Deserialize(Stream) | Deserializes the specified stream into an object graph. |
Deserialize(Stream, HeaderHandler)Deserialize(Stream, HeaderHandler)Deserialize(Stream, HeaderHandler)Deserialize(Stream, HeaderHandler) | Deserializes the specified stream into an object graph. The provided HeaderHandler handles any headers in that stream. |
DeserializeMethodResponse(Stream, HeaderHandler, IMethodCallMessage)DeserializeMethodResponse(Stream, HeaderHandler, IMethodCallMessage)DeserializeMethodResponse(Stream, HeaderHandler, IMethodCallMessage)DeserializeMethodResponse(Stream, HeaderHandler, IMethodCallMessage) | Deserializes a response to a remote method call from the provided Stream. |
Equals(Object)Equals(Object)Equals(Object)Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode()GetHashCode()GetHashCode()GetHashCode() | Serves as the default hash function. (Inherited from Object) |
GetType()GetType()GetType()GetType() | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone()MemberwiseClone()MemberwiseClone()MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object) |
Serialize(Stream, Object)Serialize(Stream, Object)Serialize(Stream, Object)Serialize(Stream, Object) | Serializes the object, or graph of objects with the specified top (root), to the given stream. |
Serialize(Stream, Object, Header[])Serialize(Stream, Object, Header[])Serialize(Stream, Object, Header[])Serialize(Stream, Object, Header[]) | Serializes the object, or graph of objects with the specified top (root), to the given stream attaching the provided headers. |
ToString()ToString()ToString()ToString() | Returns a string that represents the current object. (Inherited from Object) |
UnsafeDeserialize(Stream, HeaderHandler)UnsafeDeserialize(Stream, HeaderHandler)UnsafeDeserialize(Stream, HeaderHandler)UnsafeDeserialize(Stream, HeaderHandler) | Deserializes the specified stream into an object graph. The provided HeaderHandler handles any headers in that stream. |
UnsafeDeserializeMethodResponse(Stream, HeaderHandler, IMethodCallMessage)UnsafeDeserializeMethodResponse(Stream, HeaderHandler, IMethodCallMessage)UnsafeDeserializeMethodResponse(Stream, HeaderHandler, IMethodCallMessage)UnsafeDeserializeMethodResponse(Stream, HeaderHandler, IMethodCallMessage) | Deserializes a response to a remote method call from the provided Stream. |