NanoByte.Common
2.6.1
|
A dictionary that allows a key to reference multiple values. More...
Public Member Functions | |
void | Add (TKey key, TValue value) |
Adds an element with the provided key and value to the dictionary. More... | |
bool | Remove (TKey key, TValue value) |
Removes an element with the provided key and value from the dictionary. More... | |
Properties | |
new IEnumerable< TValue > | Values [get] |
A collection containing the values in the dictionary. More... | |
new IEnumerable< TValue > | this[TKey key] [get] |
Gets a collection containing the values with the specified key. More... | |
A dictionary that allows a key to reference multiple values.
TKey | The type to use as a key to identify entries in the dictionary. |
TValue | The type to use as elements to store in the dictionary. |
This structure internally uses hash maps, so most operations run in O(1).
TKey | : | notnull |
|
inline |
Adds an element with the provided key and value to the dictionary.
key | The key of the element to add. |
value | The value of the element to add. |
|
inline |
Removes an element with the provided key and value from the dictionary.
key | The key of the element to remove. |
value | The value of the element to remove. |
true
if any elements were successfully removed; otherwise, false
.
|
get |
Gets a collection containing the values with the specified key.
key | The key of the element to get. |
|
get |
A collection containing the values in the dictionary.