void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) { relative.Save(info); }
/// <summary> /// Implementation of serialization /// </summary> /// <param name="info">Serialization Info</param> /// <param name="context">Streaming Context</param> public virtual void GetObjectData(SerializationInfo info, StreamingContext context) { info.AddValue("Initial", initial, typeof(double[])); info.AddValue("Measures", meas, typeof(Dictionary <int, string>)); field.Save(info); }