Created
August 8, 2018 07:24
-
-
Save Hribek25/16dc96a7fbb3749eb741e6e84a935679 to your computer and use it in GitHub Desktop.
BinaryFormatter.Deserialize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private object ByteArrayToObject(byte[] source) | |
{ | |
using (var ms = new MemoryStream(source, false)) | |
{ | |
BinaryFormatter b = new BinaryFormatter(); | |
return b.Deserialize(ms); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment