Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/09 16:50:34 (16 years ago)
Author:
epitzer
Message:

Serialization with streams. (#603)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/XmlParser.cs

    r1703 r1734  
    122122    }
    123123
    124     public static object DeSerialize(string filename) {
    125       try {
    126         ZipFile zipFile = new ZipFile(filename);
     124    public static object Deserialize(string filename) {
     125      return Deserialize(new ZipFile(filename));
     126    }
     127
     128    public static object Deserialize(Stream stream) {
     129      return Deserialize(new ZipFile(stream));
     130    }
     131
     132    private static object Deserialize(ZipFile zipFile) {
     133      try {       
    127134        Deserializer deSerializer = new Deserializer(
    128135          ParseTypeCache(
Note: See TracChangeset for help on using the changeset viewer.