1public static T Deserialize(Stream input) 2{ 3 BinaryFormatter formatter = new BinaryFormatter(); 4 return formatter.Deserialize(input) as T; 5} 6