Free cookie consent management tool by TermsFeed Policy Generator

Changeset 151


Ignore:
Timestamp:
04/22/08 17:26:55 (16 years ago)
Author:
swagner
Message:

Merged fix of ticket #117 (r150) from trunk into 3.0 release branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/sources/HeuristicLab.Core/PersistenceManager.cs

    r40 r151  
    3434    }
    3535    public static XmlNode Persist(IStorable instance, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) {
    36       return Persist(instance.GetType().Name, instance, document, persistedObjects);
     36      string name = instance.GetType().Name;
     37      name = name.Replace('`', '_');
     38      return Persist(name, instance, document, persistedObjects);
    3739    }
    3840    public static XmlNode Persist(string name, IStorable instance, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) {
     
    6870    public static void Save(IStorable instance, Stream stream) {
    6971      XmlDocument document = PersistenceManager.CreateXmlDocument();
     72
    7073      document.AppendChild(Persist(instance, document, new Dictionary<Guid, IStorable>()));
    7174      document.Save(stream);
Note: See TracChangeset for help on using the changeset viewer.