See also these related resources: Does the .NET garbage collector perform predictive analysis of code? (on Stack Overflow)
Given that I have the following WCF service: class LookUpService { public List<County> GetCounties(string state)
Can anyone explain usage of weak references? The documentation doesn\'t explain it precisely, it just says that the GC can destroy the object linked to via a weak reference at any time. Then what\'s
I\'m trying to write a finalizer for Python classes that have circular references. I found out that weak reference callbacks are the way to go. Unfortunately, it seems the lambda I use as a callback i
Consider the reference Josh Smith\' article WPF Apps With The Model-View-ViewModel Design Pattern, specifically the example implementation of a RelayCommand (In Figure 3).(No need to read through the
Related: Does java have a "LinkedConcurrentHashMap" data structure? I am looking for a collection class to hold references to event listeners.
I\'m considering to port an application to db4o. The data model consists of lots of small objects with a lot of references between each other. For example, I have a book which points to an author and
When using a WeakReference, how can we be sure than the target is not collected between the .IsAlive and .Target calls?
Trying to set up a dependency in C++ with a parent-child relationship. The parent contains the child and the child has a weak pointer to the parent.
I recently came across a piece of Java code with WeakReferences - I had never seen them deployed although I\'d come across them when they were introduced. Is this something that should be routinely us