Click or drag to resize

RouletteDictionaryTKey, TValue Methods

The RouletteDictionaryTKey, 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.
Public methodContainsValue
Determines whether the dictionary contains the specified value.
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 methodGetRandomKey
Gets a random key from the dictionary.
Public methodGetRandomKey(FuncTValue, Boolean)
Gets a random value from the dictionary that satisfies a condition.
Public methodGetRandomKeyAndValue
Gets a random key-value pair from the dictionary.
Public methodGetRandomKeyAndValue(FuncTValue, Boolean)
Gets a random key-value pair from the dictionary whose value satisfies a condition.
Public methodGetRandomValue
Gets a random value from the dictionary.
Public methodGetRandomValue(FuncTValue, Boolean)
Gets a random value from the dictionary that satisfies a condition.
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 methodRemoveRandom
Removes a random entry from the dictionary.
Public methodRemoveRandom(FuncTValue, Boolean)
Removes a random entry from the dictionary that satisfies a condition.
Public methodRemoveRandomAndGet
Removes a random entry from the dictionary, returning the removed entry as a KeyValuePair.
Public methodRemoveRandomAndGet(FuncTValue, Boolean)
Removes a random entry from the dictionary that satisfies a condition, returning the removed entry as a KeyValuePair.
Public methodSetAndMaintainCount
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.
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