Table of Contents

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

K
V
Extension Methods

Properties

CanCount

Gets a value indicating whether GetCount() can be called without enumerating the dictionary.

bool CanCount { get; }

Property Value

bool

Methods

GetCount()

Retrieves the count of the key/value pairs when available.

int GetCount()

Returns

int

GetValue(K)

Retrieves a value using the provided key.

V GetValue(K key)

Parameters

key K

The 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>>