ReadOnlyDictionary<K, V> Members
Include Protected Members
Include Inherited Members
Represents a generic read-only collection of key/value pairs.
The ReadOnlyDictionary<K, V> type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
Count | Gets the number of elements contained in the ReadOnlyDictionary. |
![]() |
IsReadOnly | Always returns true as ReadOnlyDictionary is read-only. |
![]() |
Item | Gets the element with the specified key. |
![]() |
Keys | Gets an System.Collections.Generic.ICollection containing the keys of the ReadOnlyDictionary. |
![]() |
Values | Gets an System.Collections.Generic.ICollection containing the values of the ReadOnlyDictionary. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Add | Not supported. An entry cannot be added to a ReadOnlyDictionary instance. |
![]() |
Contains | Determines whether the ReadOnlyDictionary contains an item. |
![]() |
ContainsKey | Determines whether the ReadOnlyDictionary contains an element with the specified key. |
![]() |
CopyTo | Copies the elements of the ReadOnlyDictionary to an System.Array, starting at a particular System.Array index. |
![]() |
Equals | (inherited from Object) |
![]() |
Finalize | (inherited from Object) |
![]() |
GetHashCode | (inherited from Object) |
![]() |
GetType | (inherited from Object) |
![]() |
MemberwiseClone | (inherited from Object) |
![]() |
Remove | It will always throw System.NotSupportedException as ReadOnlyDictionary is read-only. |
![]() |
ToString | (inherited from Object) |
![]() |
TryGetValue | Gets the element with the specified key. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() |
ICollection<KeyValuePair<K, V>>.Add | |
![]() ![]() |
ICollection<KeyValuePair<K, V>>.Clear | |
![]() ![]() |
IEnumerable<KeyValuePair<K, V>>.GetEnumerator | |
![]() ![]() |
IEnumerable.GetEnumerator | Returns an enumerator that iterates through the collection. |
![]() ![]() |
ICollection<KeyValuePair<K, V>>.Remove |
Top