Ninject.Activation.Caching.ActivationCache.RemoveDeadObjects C# (CSharp) Method

RemoveDeadObjects() private static method

Removes all dead objects.
private static RemoveDeadObjects ( HashSet objects ) : void
objects HashSet The objects collection to be freed of dead objects.
return void
        private static void RemoveDeadObjects(HashSet<object> objects)
        {
            objects.RemoveWhere(reference => !((ReferenceEqualWeakReference)reference).IsAlive);
        }