namespace: Serenity.Data assembly: Serenity.Net.Core
A helper method to deserialize objects with BinaryWriter. Creates a memory stream and a BinaryReader on it, and invokes the callback specified.
public static TValue Deserialize<TValue>(byte[] input, Func<BinaryReader, TValue> deserialize)
parameter | description |
---|---|
input | Input array |
deserialize | Deserialization delegate |
- class TValue
- class BinarySerialization