Read |
public class ReadOnlyDictionary<TKey, TValue> : IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
The ReadOnlyDictionaryTKey, TValue type exposes the following members.
| Name | Description | |
|---|---|---|
| ReadOnlyDictionaryTKey, TValue | Constructor to create a new read only dictionary that wraps a specific dictionary. |
| Name | Description | |
|---|---|---|
| Count | Gets the number of objects in the dictionary. | |
| Item | Get the object at the specified key. | |
| Keys | Get the keys associated with this dictionary. | |
| Values | Get the values associated with this dictionary. |
| Name | Description | |
|---|---|---|
| Contains | Obsolete. Determines if this dictionary contains the specified key. | |
| ContainsKey | Determines if this dictionary contains the specified key. | |
| ContainsValue | Determines if the dictionary contains the specified value/ | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetEnumerator | Enumerator for the read only dictionary. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetObject | Method to get the value at the specified key. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| TryGetValue | Get the value associated with the specified key. |