|
Mercury library
1.0
Translation of CFG grammars into an object model (Bachelor's thesis).
|
Represents a multi-valued read-only dictionary, a map between a key and a collection of values. More...
Public Member Functions | |
| bool | Contains (TKey key, TValue value) |
| Indicates whether this collection contains the specified key and value. More... | |
| bool | ContainsKey (TKey key) |
| Indicates whether this collection contains the specified key. More... | |
| bool | TryGetValue (TKey key, out IReadOnlyList< TValue > collection) |
| Gets the value associated with the specified key. More... | |
Properties | |
| ICollection< TKey > | Keys [get] |
| The collection of keys. More... | |
| IReadOnlyList< TValue > | this[TKey key] [get] |
| Gets the collection of values associated with the specified key. More... | |
Represents a multi-valued read-only dictionary, a map between a key and a collection of values.
| TKey | The type of the key. |
| TValue | The type of values. |
Definition at line 18 of file MultiDictionary.cs.
| bool Mercury.Nucleus.Collections.IReadOnlyMultiDictionary< TKey, TValue >.Contains | ( | TKey | key, |
| TValue | value | ||
| ) |
Indicates whether this collection contains the specified key and value.
| key | The key. |
| value | The value. |
true if this collection contains the given key and value.Implemented in Mercury.Nucleus.Collections.UniqueListMultiDictionary< TKey, TValue >, Mercury.Nucleus.Collections.ListMultiDictionary< TKey, TValue >, and Mercury.Nucleus.Collections.SetMultiDictionary< TKey, TValue >.
| bool Mercury.Nucleus.Collections.IReadOnlyMultiDictionary< TKey, TValue >.ContainsKey | ( | TKey | key | ) |
Indicates whether this collection contains the specified key.
| key | The key. |
true if the collection contains the key, false otherwise. | ArgumentNullException | The key is null. |
Implemented in Mercury.Nucleus.Collections.ListMultiDictionary< TKey, TValue >, and Mercury.Nucleus.Collections.SetMultiDictionary< TKey, TValue >.
| bool Mercury.Nucleus.Collections.IReadOnlyMultiDictionary< TKey, TValue >.TryGetValue | ( | TKey | key, |
| out IReadOnlyList< TValue > | collection | ||
| ) |
Gets the value associated with the specified key.
| key | The key. |
| collection | When this method returns true, this fuek contains the values associated with the given key, otherwise it is set to null. |
true if the key was found, false otherwiseImplemented in Mercury.Nucleus.Collections.ListMultiDictionary< TKey, TValue >, and Mercury.Nucleus.Collections.SetMultiDictionary< TKey, TValue >.
|
get |
The collection of keys.
Definition at line 45 of file MultiDictionary.cs.
|
get |
Gets the collection of values associated with the specified key.
| key | The key. |
| KeyNotFoundException | The key was not found |
Definition at line 51 of file MultiDictionary.cs.
1.8.7