DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="0.1.0" />

 ReadOnlyDictionaryView<K, V>

Represents read-only view of the mutable dictionary.
public int Count { get; }

Count of key/value pairs in the dictionary.

public V this[K key] { get; }

Gets value associated with the key.

public IEnumerable<K> Keys { get; }

All dictionary keys.

public IEnumerable<V> Values { get; }

All dictionary values.

public ReadOnlyDictionaryView(IDictionary<K, V> dictionary)

Initializes a new read-only view for the mutable dictionary.

public static bool op_Equality(ReadOnlyDictionaryView<K, V> first, ReadOnlyDictionaryView<K, V> second)

Determines whether two views point to the same dictionary.

public static bool op_Inequality(ReadOnlyDictionaryView<K, V> first, ReadOnlyDictionaryView<K, V> second)

Determines whether two views point to the different dictionaries.

public bool ContainsKey(K key)

Determines whether the wrapped dictionary contains an element with the specified key.

public bool Equals(ReadOnlyDictionaryView<K, V> other)

Determines whether the current view and the specified view points to the same dictionary.

Gets enumerator over all key/value pairs in the dictionary.

public bool TryGetValue(K key, out V value)

Returns the value associated with the specified key.