Akka.Serialization.Serializer.FromBinary C# (CSharp) 메소드

FromBinary() 공개 추상적인 메소드

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
리턴 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));
 }