Class WeakKeyDictionary<TKey, TValue>
Dictionary with weak reference for the key.
Inherited Members
System.Collections.Concurrent.ConcurrentDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>>.CopyTo(System.Collections.Generic.KeyValuePair<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>[], System.Int32)
System.Collections.Concurrent.ConcurrentDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.System.Collections.Generic.IDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.Add(Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue)
System.Collections.Concurrent.ConcurrentDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.System.Collections.Generic.IDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.Remove(Microsoft.Graph.Communications.Common.WeakKey<TKey>)
System.Collections.Concurrent.ConcurrentDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>>.Add(System.Collections.Generic.KeyValuePair<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>)
System.Collections.Concurrent.ConcurrentDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>>.Contains(System.Collections.Generic.KeyValuePair<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>)
System.Collections.Concurrent.ConcurrentDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>>.Remove(System.Collections.Generic.KeyValuePair<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>)
System.Collections.Concurrent.ConcurrentDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.System.Collections.IDictionary.get_Item(System.Object)
System.Collections.Concurrent.ConcurrentDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
System.Collections.Concurrent.ConcurrentDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.System.Collections.Generic.IReadOnlyDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.Keys
System.Collections.Concurrent.ConcurrentDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.System.Collections.Generic.IReadOnlyDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.Values
System.Collections.Concurrent.ConcurrentDictionary<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Microsoft.Graph.Communications.Common.WeakKey<TKey>, TValue>>.IsReadOnly
Namespace: Microsoft.Graph.Communications.Common
Assembly: Microsoft.Graph.Communications.Common.dll
Syntax
public class WeakKeyDictionary<TKey, TValue> : ConcurrentDictionary<WeakKey<TKey>, TValue>, IDictionary<WeakKey<TKey>, TValue>, ICollection<KeyValuePair<WeakKey<TKey>, TValue>>, IDictionary, ICollection, IReadOnlyDictionary<WeakKey<TKey>, TValue>, IReadOnlyCollection<KeyValuePair<WeakKey<TKey>, TValue>>, IEnumerable<KeyValuePair<WeakKey<TKey>, TValue>>, IEnumerable where TKey : class
Type Parameters
Name | Description |
---|---|
TKey | Key type which must be a reference type. |
TValue | Value type. |
Constructors
WeakKeyDictionary()
Declaration
public WeakKeyDictionary()
Methods
Cleanup()
Cleans keys where the weak references have been garbage collected.
Declaration
public void Cleanup()