Changeset 5404 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/PersistenceUtil.cs
- Timestamp:
- 02/01/11 15:51:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/PersistenceUtil.cs
r5156 r5404 22 22 using System.IO; 23 23 using HeuristicLab.Persistence.Default.Xml; 24 using System.Collections.Generic; 25 using HeuristicLab.PluginInfrastructure; 26 using System; 27 using HeuristicLab.Persistence.Core; 24 28 25 29 namespace HeuristicLab.Clients.Hive { 26 30 public static class PersistenceUtil { 31 public static byte[] Serialize(object obj, out IEnumerable<Type> types) { 32 MemoryStream memStream = new MemoryStream(); 33 XmlGenerator.Serialize(obj, memStream, ConfigurationService.Instance.GetConfiguration(new XmlFormat()), false, out types); 34 byte[] jobByteArray = memStream.ToArray(); 35 memStream.Dispose(); 36 return jobByteArray; 37 } 38 27 39 public static byte[] Serialize(object obj) { 28 40 MemoryStream memStream = new MemoryStream();
Note: See TracChangeset
for help on using the changeset viewer.