Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/08/11 14:26:36 (13 years ago)
Author:
svonolfe
Message:

Added first working version of the MPI engine (#1542)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/MPI/HeuristicLab.Operators.MPISupport/3.3/MPITransportWrapper.cs

    r6354 r6394  
    4949
    5050    protected MPITransportWrapper(SerializationInfo info, StreamingContext context) {
    51       MemoryStream stream = new MemoryStream(info.GetValue("Item", typeof(byte[])) as byte[]);
    52       if (stream != null)
    53         innerItem = XmlParser.Deserialize(stream) as T;
     51      byte[] buffer = info.GetValue("Item", typeof(byte[])) as byte[];
     52      if (buffer != null)
     53        innerItem = XmlParser.Deserialize(new MemoryStream(buffer)) as T;
    5454      else
    5555        innerItem = null;
Note: See TracChangeset for help on using the changeset viewer.