Click or drag to resize
Akka.NETSerializer Class
A Serializer represents a bimap between an object and an array of bytes representing that object. Serializers are loaded using reflection during ActorSystem start-up, where two constructors are tried in order:
  • taking exactly one argument of type ExtendedActorSystem; this should be the preferred one because all reflective loading of classes during deserialization should use ExtendedActorSystem.dynamicAccess (see [[]]), and
  • without arguments, which is only an option if the serializer does not load classes using reflection.
Be sure to always use the PropertyManager for loading classes! This is necessary to avoid strange match errors and inequalities which arise from different class loaders loading the same class.
Inheritance Hierarchy

Namespace:  Akka.Serialization
Assembly:  Akka (in Akka.dll) Version: (
public abstract class Serializer

The Serializer type exposes the following members.

Public methodSerializer
Initializes a new instance of the Serializer class.
Public propertyIdentifier
Completely unique value to identify this implementation of Serializer, used to optimize network traffic Values from 0 to 16 is reserved for Akka internal usage
Public propertyIncludeManifest
Returns whether this serializer needs a manifest in the fromBinary method
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFromBinary(Byte, Type)
Deserializes a byte array into an object of type type.
Public methodFromBinaryT(Byte)
Deserializes a byte array into an object.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToBinary
Serializes the given object into a byte array
Public methodToBinaryWithAddress
Serializes the given object into a byte array and uses the given address to decorate serialized ActorRef's
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected fieldsystem
The actor system to associate with this serializer.
Extension Methods
See Also
Inheritance Hierarchy