Weak reference benefits

Soft and phantom references come from Java, I believe. A long weak reference (pass true to C#’s WeakReference constructor) might be considered similar to Java’s PhantomReference. If there is an analog to SoftReference in C#, I don’t know what it is. Weak references do not extend the lifespan of an object, thus allowing it to … Read more