Changeset 2874
- Timestamp:
- 02/26/10 15:47:53 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/XmlParser.cs
r1823 r2874 123 123 124 124 public static object Deserialize(string filename) { 125 return Deserialize(new ZipFile(filename)); 125 using (ZipFile file = new ZipFile(filename)) { 126 return Deserialize(file); 127 } 126 128 } 127 129 128 130 public static object Deserialize(Stream stream) { 129 return Deserialize(new ZipFile(stream)); 131 using (ZipFile file = new ZipFile(stream)) { 132 return Deserialize(file); 133 } 130 134 } 131 135
Note: See TracChangeset
for help on using the changeset viewer.