RouletteDictionaryTKey, TValue Methods |
The RouletteDictionaryTKey, 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.
| |
| ContainsValue |
Determines whether the dictionary contains the specified value.
| |
| 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.) | |
| GetRandomKey |
Gets a random key from the dictionary.
| |
| GetRandomKey(FuncTValue, Boolean) |
Gets a random value from the dictionary that satisfies a condition.
| |
| GetRandomKeyAndValue |
Gets a random key-value pair from the dictionary.
| |
| GetRandomKeyAndValue(FuncTValue, Boolean) |
Gets a random key-value pair from the dictionary whose value satisfies a condition.
| |
| GetRandomValue |
Gets a random value from the dictionary.
| |
| GetRandomValue(FuncTValue, Boolean) |
Gets a random value from the dictionary that satisfies a condition.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Remove |
Removes the value with the specified key from the dictionary.
| |
| RemoveRandom |
Removes a random entry from the dictionary.
| |
| RemoveRandom(FuncTValue, Boolean) |
Removes a random entry from the dictionary that satisfies a condition.
| |
| RemoveRandomAndGet |
Removes a random entry from the dictionary, returning the removed
entry as a KeyValuePair.
| |
| RemoveRandomAndGet(FuncTValue, Boolean) |
Removes a random entry from the dictionary that satisfies a condition, returning the removed
entry as a KeyValuePair.
| |
| SetAndMaintainCount |
Adds/updates the dictionary with a new value. If the operation performs an
add, a random element will be removed to make room for the new one.
| |
| 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.
|