M42.Collections by Daniel Pelsmaeker

<PackageReference Include="M42.Collections" Version="0.6.5056.5071" />

 IKeyedCollection<TKey, TValue>

public interface IKeyedCollection<TKey, TValue> : ICollection<IAssociation<TKey, TValue>>, IEnumerable<IAssociation<TKey, TValue>>, ICollection, IEnumerable
A collection whose elements can be retrieved by key.
TValue this[object key] { get; }

Gets an element that is associated with a key that is considered to be equal to the specified key.

ICollection<TKey> Keys { get; }

Gets a collection of keys in this keyed collection.

ICollection<TValue> Values { get; }

Gets a collection of values in this keyed collection.

bool ContainsKey(object key)

Returns whether the collection contains one or more elements with a key that is considered to be equal to the specified key.

TValue GetValue(object key, out bool isPresent)

Gets a value from the keyed collection that has a key that is considered to be equal to the specified key.

TValue GetValue(object key)

Gets a value from the keyed collection that has a key that is considered to be equal to the specified key.

bool IsValidKey(object key)

Returns whether the specified key is a valid key for this keyed collection.

bool IsValidValue(object value)

Returns whether the specified value is a valid value for this keyed collection.