title: How to handle WeakReference in DataContract serialization?
body: <p>My class uses a <code>readonly WeakReference</code> to store certain data. This class is also serializable via <code>DataContract</code>.</p>
  
  <p>How should I handle the weak reference? I would like it to come back as empty (target null) after deserialization, just as if it had been collected.</p>
  
  <p>Simply ignoring the issue is not possible because my code rightly expects the reference object itself to be non-null. Do I have to let go of the <code>readonly</code> and manually check for an re-create the weak reference object during uptime?</p>