public object SetObjectData( object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector) { EntitySerializer.Deerialize(obj, obj.GetType(), info, context); return(obj); }