예제 #1
0
        private void SerializeDeserializeBinary()
        {
            SerializeManager.SerializeBinary(_storage, "serializebinary.txt");
            var storage = SerializeManager.DeserializeBinary <Storage>("serializebinary.txt");

            Logger.Log("Storage was serialized and deserialized");
        }
예제 #2
0
 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");
     }
 }