C# Class ServiceStack.Redis.Support.ObjectSerializer

serialize/deserialize arbitrary objects (objects must be serializable)
Inheritance: ISerializer
显示文件 Open project: ServiceStack/ServiceStack.Redis Class Usage Examples

Protected Properties

Property Type Description
bf System.Runtime.Serialization.Formatters.Binary.BinaryFormatter

Public Methods

Method Description
Deserialize ( byte someBytes ) : object

Deserialize buffer to object

Serialize ( object value ) : byte[]

Serialize object to buffer

Method Details

Deserialize() public method

Deserialize buffer to object
public Deserialize ( byte someBytes ) : object
someBytes byte byte array to deserialize
return object

Serialize() public method

Serialize object to buffer
public Serialize ( object value ) : byte[]
value object serializable object
return byte[]

Property Details

bf protected_oe property

protected BinaryFormatter,System.Runtime.Serialization.Formatters.Binary bf
return System.Runtime.Serialization.Formatters.Binary.BinaryFormatter