/[xmltv_parser]/trunk/libxmltv/Core/XMLTVSerializer.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTVSerializer.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 50 by william, Fri Mar 8 06:15:44 2013 UTC revision 55 by william, Fri Mar 8 10:19:32 2013 UTC
# Line 28  namespace libxmltv.Core Line 28  namespace libxmltv.Core
28                  BinaryFormatter bin = new BinaryFormatter();                  BinaryFormatter bin = new BinaryFormatter();
29                  bin.Serialize(stream, data);                  bin.Serialize(stream, data);
30              }              }
31              catch (Exception ex) { xmltv_logger.Log.Error.WriteLine(ex.ToString()); return false; }              catch (Exception ex) { xmltv_logger.Error.WriteLine(ex.ToString()); return false; }
32              return true;              return true;
33          }          }
34          public T DeSerialize(string file, out bool status)          public T DeSerialize(string file, out bool status)
# Line 45  namespace libxmltv.Core Line 45  namespace libxmltv.Core
45                  BinaryFormatter bin = new BinaryFormatter();                  BinaryFormatter bin = new BinaryFormatter();
46                  unpacked_data = (T)bin.Deserialize(stream);                  unpacked_data = (T)bin.Deserialize(stream);
47              }              }
48              catch (Exception ex) { xmltv_logger.Log.Error.WriteLine(ex.ToString()); status = false; }              catch (Exception ex) { xmltv_logger.Error.WriteLine(ex.ToString()); status = false; }
49              status = true;              status = true;
50              return unpacked_data;              return unpacked_data;
51          }          }

Legend:
Removed from v.50  
changed lines
  Added in v.55

  ViewVC Help
Powered by ViewVC 1.1.22