Example #1
0
 /// <summary>
 /// Deserialization constructor
 /// </summary>
 /// <param name="info">Serialization info</param>
 /// <param name="context">Streaming context</param>
 protected AcceleratedPosition(SerializationInfo info, StreamingContext context)
 {
     initial = info.GetValue("Initial", typeof(double[])) as double[];
     meas    = info.GetValue("Measures", typeof(Dictionary <int, string>)) as Dictionary <int, string>;
     field   = RelativeField.Load(info, this);
     PostConstruct();
     isSerialized = true;
 }
Example #2
0
 /// <summary>
 /// Deserialization ctor
 /// </summary>
 /// <param name="info">Serialization info</param>
 /// <param name="context">Streaming context</param>
 protected InertialSensorData(SerializationInfo info, StreamingContext context)
     : this()
 {
     relative = RelativeField.Load(info, this);
     post();
 }