Changeset 14927 for branches/PersistenceReintegration/HeuristicLab.Persistence/3.3/Default/Xml/EasyXmlGenerator.cs
- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Persistence/3.3/Default/Xml/EasyXmlGenerator.cs
r14185 r14927 154 154 File.Copy(tempfile, filename, true); 155 155 File.Delete(tempfile); 156 } 157 catch (Exception) { 156 } catch (Exception) { 158 157 Logger.Warn("Exception caught, no data has been written."); 159 158 throw; … … 181 180 try { 182 181 using (StreamWriter writer = new StreamWriter(stream)) { 183 Serializer serializer = newSerializer(obj, config);182 var serializer = new HeuristicLab.Persistence.Core.Serializer(obj, config); 184 183 serializer.InterleaveTypeInformation = true; 185 184 ReadableXmlGenerator generator = new ReadableXmlGenerator(); … … 190 189 writer.Flush(); 191 190 } 192 } 193 catch (PersistenceException) { 191 } catch (PersistenceException) { 194 192 throw; 195 } 196 catch (Exception e) { 193 } catch (Exception e) { 197 194 throw new PersistenceException("Unexpected exception during Serialization.", e); 198 195 }
Note: See TracChangeset
for help on using the changeset viewer.