コード例 #1
0
 void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
 {
     relative.Save(info);
 }
コード例 #2
0
 /// <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);
 }