- Timestamp:
- 08/29/19 15:57:35 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Clients.Hive
- Property svn:mergeinfo changed
/branches/2435-alglib_3_15/HeuristicLab.Clients.Hive (added) merged: 17034 /trunk/HeuristicLab.Clients.Hive merged: 17037,17087-17089,17180,17184
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Clients.Hive/3.3/Util/PersistenceUtil.cs
r16723 r17226 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2019Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 44 44 try { 45 45 return (T)ser.Deserialize(sjob); 46 } catch (Exception) { 47 // retry with old persistence 48 using (MemoryStream memStream = new MemoryStream(sjob)) { 49 return XmlParser.Deserialize<T>(memStream); 50 } 46 } catch (PersistenceException e) { 47 if (e.InnerException is InvalidDataException) { 48 // We assume the data was not serialized with HEAL.Attic, but with the former 49 // XML-based persistence 50 return DeserializeWithXmlParser<T>(sjob); 51 } else throw; 52 } 53 } 54 55 private static T DeserializeWithXmlParser<T>(byte[] sjob) { 56 using (MemoryStream memStream = new MemoryStream(sjob)) { 57 return XmlParser.Deserialize<T>(memStream); 51 58 } 52 59 } -
branches/2521_ProblemRefactoring/HeuristicLab.Clients.Hive/3.3/Util/PluginUtil.cs
r16723 r17226 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2019Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab.
Note: See TracChangeset
for help on using the changeset viewer.