Akka.Serialization.Serializer.FromBinary C# (CSharp) Method

FromBinary() public abstract method

Deserializes a byte array into an object of type type.
public abstract 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
        public abstract object FromBinary(byte[] bytes, Type type);

Usage Example

 public virtual IPersistentRepresentation GetRepresentation(Serializer serializer, RecordedEvent @event)
 {
     return (IPersistentRepresentation) serializer.FromBinary(@event.Data, typeof (IPersistentRepresentation));
 }