Changeset 1625 for trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/DateTime2XmlFormatter.cs
- Timestamp:
- 04/23/09 14:22:29 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/DateTime2XmlFormatter.cs
r1623 r1625 14 14 15 15 public override DateTime Parse(XmlString x) { 16 return new DateTime(long.Parse(x.Data)); 16 try { 17 return new DateTime(long.Parse(x.Data)); 18 } catch (Exception e) { 19 throw new PersistenceException("Exception caugth while trying to reconstruct DateTime object.", e); 20 } 17 21 } 18 22
Note: See TracChangeset
for help on using the changeset viewer.