Interface IReadOnlyDictionaryMap<K, V>
- Namespace
- Utils.Collections
- Assembly
- Utils.dll
Defines accessor methods required to expose dictionary data without granting mutation capabilities.
public interface IReadOnlyDictionaryMap<K, V>
Type Parameters
KV
- Extension Methods
Properties
CanCount
Gets a value indicating whether GetCount() can be called without enumerating the dictionary.
bool CanCount { get; }
Property Value
Methods
GetCount()
Retrieves the count of the key/value pairs when available.
int GetCount()
Returns
GetValue(K)
Retrieves a value using the provided key.
V GetValue(K key)
Parameters
keyKThe key that identifies the value.
Returns
- V
The value associated with
key.
GetValues()
Returns the key/value pairs contained in the dictionary.
IEnumerable<KeyValuePair<K, V>> GetValues()
Returns
- IEnumerable<KeyValuePair<K, V>>