示例#1
0
 public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
 {
     PersistAssist.Deserialize(obj, info, context);
     return(obj);
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PersistObject"/> class.
 /// Deserialization constructor.
 /// </summary>
 /// <param name="info">
 /// The info.
 /// </param>
 /// <param name="context">
 /// The context.
 /// </param>
 protected PersistObject(SerializationInfo info, StreamingContext context)
 {
     PersistAssist.Deserialize(this, info, context);
 }