INetworkSerializer
Namespace: TagBites.Net
Assembly: TagBites.Net.dll
Provides a mechanism for serialization/deserialization of network objects.
public abstract interface INetworkSerializer
Methods
Deserialize(Stream, Type)
Deserializes object from stream.
public object Deserialize(Stream stream, Type type)
Result Type: object
Parameters
Type | Name | |
---|---|---|
Stream | stream | Stream with object data. |
Type | type | Type of object to deserialize. |
Serialize(Stream, object)
Serializes object to stream.
public void Serialize(Stream stream, object value)
Result Type: void
Parameters
Type | Name | |
---|---|---|
Stream | stream | Stream to write the serialized object. |
object | value | Object to serialize. |