Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Sealed class: RT.Util.Collections.ReadOnlyDictionary<TKey, TValue>Summary
Wraps an IDictionary<TKey, TValue> to allow reading values but prevent setting/removing them. Generic type parameters| TKey | This type parameter is not documented. | | TValue | This type parameter is not documented. |
Constructors | Creates a new read-only wrapper for the specified IDictionary<TKey, TValue>. |
Instance methods| void | Add(KeyValuePair<TKey, TValue> item) | Not supported on a ReadOnlyDictionary. | | void | Add(TKey key, TValue value) | | void | | | bool | Contains(KeyValuePair<TKey, TValue> item) | Returns true if the dictionary contains the specified key/value pair. | | bool | | Returns true if the dictionary contains the specified key. | | void | CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) | Copies the key/value pairs of this dictionary into the specified array. | | IEnumerator<KeyValuePair<TKey, TValue>> | | Gets an enumerator for the key/value pairs stored in this dictionary. | | bool | | Returns true if dict is the same dictionary object as the one this class wraps. | | bool | | Not supported on a ReadOnlyDictionary. | | bool | Remove(KeyValuePair<TKey, TValue> item) | | bool | | Gets the value associated with the specified key. Returns true if the value exists, false otherwise. |
Instance properties| int | | Gets the number of elements in this read-only collection. | | bool | | Returns true, as this is a read-only collection. | | TValue | | Gets a value from the dictionary. Setting values is not supported on a ReadOnlyDictionary. | | ICollection<TKey> | | Gets a read-only collection of keys in this dictionary. | | ICollection<TValue> | | Gets a read-only collection of values in this dictionary. |
|