title: Are there Weak References in .NET?
body: <p>I would like to keep a list of a certain class of objects in my application. But I still want the object to be garbage collected. Can you create <strong>weak references</strong> in .NET?</p>
  
  <p>For reference:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/346762">Garbage Collecting objects which keep track of their own instances in an internal Map</a></li>
  <li><a href="https://stackoverflow.com/questions/258505">Create a weak reference to an object</a></li>
  </ul>
  
  <p>Answer From MSDN:</p>
  
  <blockquote>
    <p>To establish a weak reference with an
    object, you create a WeakReference
    using the instance of the object to be
    tracked. You then set the Target
    property to that object and set the
    object to null. For a code example,
    see WeakReference in the class
    library.</p>
  </blockquote>