Click or drag to resize

RecentDictionaryTKey, TValue Methods

The RecentDictionaryTKey, TValue generic type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds the specified key and value to the dictionary.
Public methodClear
Removes all items from the dictionary without changing the dictionary's capacity.
Public methodContainsKey
Determines whether the dictionary contains the specified key. The order of items in the dictionary is not modified.
Public methodContainsValue
Determines whether the dictionary contains the specified value. The order of items in the dictionary is not modified.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the dictionary.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove
Removes the value with the specified key from the dictionary.
Public methodRemoveAndGetLeastRecent
Gets and removes the least recently accessed item from the dictionary.
Public methodRemoveAndGetMostRecent
Gets and removes the most recently accessed item from the dictionary.
Public methodRemoveLeastRecent
Removes the least recently accessed item from the dictionary.
Public methodRemoveMostRecent
Removes the most recently accessed item from the dictionary.
Public methodSetAndMaintainCount
Adds/updates the dictionary with a new value. If the operation performs an add, either the least-recently or most-recently accessed element will be removed to make room for the new one (depending on the RecentDictionaryEvictionMode passed into the constructor).
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTrim
Trims excess capacity from the dictionary.
Public methodTryGetValue
Gets the value associated with the specified key.
Top
See Also