Version

WeakDictionary<TKey,TValue> Constructor(Boolean,Boolean,IEqualityComparer<TKey>)

Constructor. Initializes a new instance of WeakDictionary<TKey,TValue>.
Syntax
'Declaration
 
Public Function New( _
   ByVal manageKeysAsWeakReferences As Boolean, _
   ByVal manageValuesAsWeakReferences As Boolean, _
   ByVal keyComparer As IEqualityComparer(Of TKey) _
)
public WeakDictionary<TKey,TValue>( 
   bool manageKeysAsWeakReferences,
   bool manageValuesAsWeakReferences,
   IEqualityComparer<TKey> keyComparer
)

Parameters

manageKeysAsWeakReferences
Specifies whether to manage keys as weak references.
manageValuesAsWeakReferences
Specifies whether to manage keys as weak references.
keyComparer
Comparer for compring keys.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also