Enhanced C#
Language of your choice: library documentation
Properties | Public Member Functions | Protected Member Functions | List of all members
Loyc.Collections.WeakKeyDictionary< TKey, TValue > Class Template Reference

A dictionary with weak keys. More...


Source file:
Inheritance diagram for Loyc.Collections.WeakKeyDictionary< TKey, TValue >:
Loyc.Collections.Impl.BaseDictionary< TKey, TValue >

Remarks

A dictionary with weak keys.

Source: datavault project. License: Apache License 2.0

Type Constraints
TKey :class 

Properties

override int Count [get]
 
- Properties inherited from Loyc.Collections.Impl.BaseDictionary< TKey, TValue >
abstract int Count [get]
 
bool IsReadOnly [get]
 
ICollection< TKey > Keys [get]
 
ICollection< TValue > Values [get]
 
TValue this[TKey key] [get, set]
 

Public Member Functions

 WeakKeyDictionary (int capacity)
 
 WeakKeyDictionary (IEqualityComparer< TKey > comparer)
 
 WeakKeyDictionary (int capacity, IEqualityComparer< TKey > comparer)
 
override void Add (TKey key, TValue value)
 
override bool ContainsKey (TKey key)
 
override bool Remove (TKey key)
 
override bool TryGetValue (TKey key, out TValue value)
 
override void Clear ()
 
override IEnumerator< KeyValuePair< TKey, TValue > > GetEnumerator ()
 
void RemoveCollectedEntries ()
 
- Public Member Functions inherited from Loyc.Collections.Impl.BaseDictionary< TKey, TValue >
void Add (KeyValuePair< TKey, TValue > item)
 
bool Contains (KeyValuePair< TKey, TValue > item)
 
void CopyTo (KeyValuePair< TKey, TValue >[] array, int arrayIndex)
 
bool Remove (KeyValuePair< TKey, TValue > item)
 

Protected Member Functions

override void SetValue (TKey key, TValue value)