Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1895 for trunk


Ignore:
Timestamp:
05/26/09 12:23:07 (16 years ago)
Author:
epitzer
Message:

Add SaveCompressed() method to PersistenceManager. (#646)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/PersistenceManager.cs

    r1734 r1895  
    4242    /// <param name="filename">The name of the file where the <paramref name="object"/> should be saved.</param>
    4343    public static void Save(IStorable instance, string filename) {
    44       XmlGenerator.Serialize(instance, filename);
     44      XmlGenerator.Serialize(instance, filename, 0);
     45    }
     46
     47    public static void SaveCompressed(IStorable instance, string filename) {
     48      XmlGenerator.Serialize(instance, filename, 9);
    4549    }
    4650
Note: See TracChangeset for help on using the changeset viewer.