Interface IReadOnlyCollectionDictionaryBase<TKey, TValue>
Represents the members of a read-only collection dictionary that do not depend on the type of the keyed value collections. This is the common base of every collection dictionary interface so that these members remain unambiguous when an interface derives from more than one value collection type.
Namespace: Singulink.Collections
Assembly: Singulink.Collections.dll
Syntax
public interface IReadOnlyCollectionDictionaryBase<TKey, TValue>
Type Parameters
| Name | Description |
|---|---|
| TKey | The type of the keys in the dictionary. |
| TValue | The type of the values in the dictionary. |
Properties
| Name | Description |
|---|---|
| Count | Gets the number of keys and associated value collections in the dictionary. |
| Keys | Gets a collection containing the keys in the dictionary. |
| ValueCount | Gets the total number of values in the dictionary across all keys. |
| Values | Gets a collection containing all the values across all the keys in the dictionary. |
Methods
| Name | Description |
|---|---|
| Contains(TKey, TValue) | Determines whether the dictionary contains the specified key associated with the specified value. |
| ContainsKey(TKey) | Determines whether the dictionary contains the specified key. |
| ContainsValue(TValue) | Determines whether any of the value collections in the dictionary contain the specified value. |
| GetValueCount(TKey) | Gets the number of values associated with the specified key, or zero if the key is not present. |