private void SerializeDeserializeBinary() { SerializeManager.SerializeBinary(_storage, "serializebinary.txt"); var storage = SerializeManager.DeserializeBinary <Storage>("serializebinary.txt"); Logger.Log("Storage was serialized and deserialized"); }
private void SerializeDeserializeBinary() { try { SerializeManager.SerializeBinary(_storage, "serializebinary.txt"); var storage = SerializeManager.DeserializeBinary <Storage>("serializebinary.txt"); Logger.Log("Storage was serialized and deserialized"); } catch (Exception ex) { Console.WriteLine("Error handling"); } }