![]() | WeakDictionaryTKey, TValue Class |
Namespace: com.espertech.esper.compat
public sealed class WeakDictionary<TKey, TValue> : IDictionary, ICollection, IEnumerable, IEnumerable where TKey : class where TValue : class
[Missing <typeparam name="TKey"/> documentation for "T:com.espertech.esper.compat.WeakDictionary`2"]
[Missing <typeparam name="TValue"/> documentation for "T:com.espertech.esper.compat.WeakDictionary`2"]
The WeakDictionaryTKey, TValue type exposes the following members.
Name | Description | |
---|---|---|
![]() | WeakDictionaryTKey, TValue |
Initializes a new instance of the WeakDictionaryTKey, TValue class.
|
![]() | WeakDictionaryTKey, TValue(IEqualityComparerT) | Initializes a new instance of the WeakDictionaryTKey, TValue class |
![]() | WeakDictionaryTKey, TValue(Int32) |
Initializes a new instance of the WeakDictionaryTKey, TValue class.
|
![]() | WeakDictionaryTKey, TValue(Int32, IEqualityComparerT) | Initializes a new instance of the WeakDictionaryTKey, TValue class |
Name | Description | |
---|---|---|
![]() | Count |
Gets the number of elements contained in the ICollectionT.
|
![]() | FirstValue |
Returns the first value in the enumeration of values
|
![]() | IsReadOnly |
Gets a value indicating whether the ICollectionT is read-only.
|
![]() | Item |
Gets or sets the item with the specified key.
|
![]() | Keys |
Gets an ICollectionT containing the keys of the IDictionaryTKey, TValue.
|
![]() | KeysEnum |
Gets an enumerator that enumerates the keys.
|
![]() | Values |
Gets an ICollectionT containing the values in the IDictionaryTKey, TValue.
|
Name | Description | |
---|---|---|
![]() | Add(KeyValuePairTKey, TValue) | |
![]() | Add(TKey, TValue) |
Adds an element with the provided key and value to the IDictionaryTKey, TValue.
|
![]() | Clear |
Removes all items from the ICollectionT.
|
![]() | Contains | |
![]() | ContainsKey |
Determines whether the IDictionaryTKey, TValue contains an element with the specified key.
|
![]() | CopyTo | |
![]() | Get(TKey) |
Fetches the value associated with the specified key.
If no value can be found, then default(V) is returned.
|
![]() | Get(TKey, TValue) |
Fetches the value associated with the specified key.
If no value can be found, then the defaultValue is
returned.
|
![]() | GetEnumerator |
Returns an enumerator that iterates through the collection.
|
![]() | Push |
Sets the given key in the dictionary. If the key
already exists, then it is remapped to the new value.
If a value was previously mapped it is returned.
|
![]() | Put |
Sets the given key in the dictionary. If the key
already exists, then it is remapped to thenew value.
|
![]() | PutAll | |
![]() | Remove(KeyValuePairTKey, TValue) | |
![]() | Remove(TKey) |
Removes the element with the specified key from the IDictionaryTKey, TValue.
|
![]() | Remove(TKey, TValue) |
Removes the item from the dictionary that is associated with
the specified key.
|
![]() | RemoveAndReturn |
Removes the item from the dictionary that is associated with
the specified key. The item if found is returned; if not,
default(V) is returned.
|
![]() | RemoveCollectedEntries |
Removes the left-over weak references for entries in the dictionary
whose key or value has already been reclaimed by the garbage
collector. This will reduce the dictionary's Count by the number
of dead key-value pairs that were eliminated.
|
![]() | TryGetValue |
Tries to get the value.
|