Skip to main content

ObjectSerializer

serialize/deserialize arbitrary objects (objects must be serializable)

Assembly: ServiceStack.Redis.dll
View Source
Declaration
public class ObjectSerializer : ISerializer

Fields

bf

View Source
Declaration
protected readonly BinaryFormatter bf

Methods

Serialize(Object)

Serialize object to buffer

View Source
Declaration
public virtual byte[] Serialize(object value)
Returns

System.Byte[]

Parameters
TypeNameDescription
System.Objectvalueserializable object

|

Deserialize(Byte[])

Deserialize buffer to object

View Source
Declaration
public virtual object Deserialize(byte[] someBytes)
Returns

System.Object

Parameters
TypeNameDescription
System.Byte[]someBytesbyte array to deserialize

|

Implements