![]() | RecentDictionaryTKey, TValue Methods |
The RecentDictionaryTKey, TValue generic type exposes the following members.
Name | Description | |
---|---|---|
![]() | Add |
Adds the specified key and value to the dictionary.
|
![]() | Clear |
Removes all items from the dictionary without changing the dictionary's capacity.
|
![]() | ContainsKey |
Determines whether the dictionary contains the specified key. The order of
items in the dictionary is not modified.
|
![]() | ContainsValue |
Determines whether the dictionary contains the specified value. The order of
items in the dictionary is not modified.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetEnumerator |
Returns an enumerator that iterates through the dictionary.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Remove |
Removes the value with the specified key from the dictionary.
|
![]() | RemoveAndGetLeastRecent |
Gets and removes the least recently accessed item from the dictionary.
|
![]() | RemoveAndGetMostRecent |
Gets and removes the most recently accessed item from the dictionary.
|
![]() | RemoveLeastRecent |
Removes the least recently accessed item from the dictionary.
|
![]() | RemoveMostRecent |
Removes the most recently accessed item from the dictionary.
|
![]() | SetAndMaintainCount |
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).
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Trim |
Trims excess capacity from the dictionary.
|
![]() | TryGetValue |
Gets the value associated with the specified key.
|