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

TypeName
StreamstreamStream with object data.
TypetypeType of object to deserialize.

Serialize(Stream, object)

Serializes object to stream.

public void Serialize(Stream stream, object value)

Result Type: void

Parameters

TypeName
StreamstreamStream to write the serialized object.
objectvalueObject to serialize.