/// <summary> /// Disposes of the Concurrent Weak Dictionary, cleaning up any weak references /// </summary> public void Dispose() { // Free our GC Handles so we don't create a memory leak foreach (var MyValue in _Dictionary.Values) { MyValue.Dispose(); } }
/// <summary> /// Disposes of the Weak Dictionary, cleaning up any weak references /// </summary> public void Dispose() { foreach (var MyValue in _Dictionary.Values) { MyValue.Dispose(); } GC.SuppressFinalize(this); }