Read |
public class ReadOnlyCollection<TKey, TValue> : IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
The ReadOnlyCollectionTKey, TValue type exposes the following members.
| Name | Description | |
|---|---|---|
| ReadOnlyCollectionTKey, TValue | Constructor to create a new read only collection. | |
| ReadOnlyCollectionTKey, TValue(IEqualityComparerTKey) | Constructor to create a new read only collection where the equality comparer can be passed in. |
| Name | Description | |
|---|---|---|
| Count | Gets the number of objects in the this collection. | |
| Item | Get the object at the specified number. | |
| Keys | Get the keys associated with this collection. | |
| Values | Get the values associated with this collection. |
| Name | Description | |
|---|---|---|
| Add | Method to add something to the collection. | |
| Contains | Determines if this collection contains the specified key. | |
| 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 collection. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetObject | Method to get object at the specified number. | |
| 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. |
| Name | Description | |
|---|---|---|
| _InternalDictionary | Internal storage of the objects |