MultiDictionary<TKey, TValue>
Provides a palette with multiple values per key. This class is not optimized for large overlaps of values.
Type parameters:
| TKey | Key type. |
| TValue | Value type. |
Constructors
Properties
Indexers
Methods
KeyValence
#Gets the number of values associated with the given key.
Returns: Number of items associated with key.
RemoveListsByLength
#Remove all entries that contain lists shorter than or longer than the specified limits.
Returns: Number of keys removed.
TryGetAll
#Try to get all values associated with a specific key.
public TValue[] TryGetAll()
TKey
key
Key.
Returns: Array of values associated with key.
TryGetFirst
#Try to get the get the first value associated with a specific key.
Returns: True if a first value was found.
TryGetOne
#Try to get a single value associated with the key. If the key has valence zero or higher than one, this method will return false.
public bool TryGetOne()
TKey
key,
Key to search for.
out TValue
value
Single value will be returned here.
Returns: True on success, false on failure.
ValencePairs
#Gets all key/value pairs that are within some valence range.
Returns: Enumerable collection of pairs.