Home
Manage Your Code
Snippet: Binary Deserialize method (C#)
Title: Binary Deserialize method Language: C#
Description: Deserializes a object from a given stream using the BinaryFormatter and returns the object as the type specified. Views: 59
Author: Schalk van Wyk Date Added: 8/26/2008
Copy Code  
1public static T Deserialize(Stream input)
2{
3    BinaryFormatter formatter = new BinaryFormatter();
4    return formatter.Deserialize(input) as T;
5}
6