C# Class Akka.Serialization.NewtonSoftJsonSerializer

Class NewtonSoftJsonSerializer.
Inheritance: Serializer
Show file Open project: rogeralsing/akka.net Class Usage Examples

Public Methods

Method Description
FromBinary ( byte bytes, Type type ) : object

Deserializes a byte array into an object of type type.

NewtonSoftJsonSerializer ( ExtendedActorSystem system ) : System

Initializes a new instance of the NewtonSoftJsonSerializer class.

ToBinary ( object obj ) : byte[]

Serializes the given object into a byte array

Private Methods

Method Description
GetValue ( string V ) : object
TranslateSurrogate ( object deserializedValue, NewtonSoftJsonSerializer parent, Type type ) : object

Method Details

FromBinary() public method

Deserializes a byte array into an object of type type.
public FromBinary ( byte bytes, Type type ) : object
bytes byte The array containing the serialized object
type System.Type The type of object contained in the array
return object

NewtonSoftJsonSerializer() public method

Initializes a new instance of the NewtonSoftJsonSerializer class.
public NewtonSoftJsonSerializer ( ExtendedActorSystem system ) : System
system ExtendedActorSystem The actor system to associate with this serializer.
return System

ToBinary() public method

Serializes the given object into a byte array
public ToBinary ( object obj ) : byte[]
obj object The object to serialize
return byte[]