Read-only, generic collection of elements.
Inheritance Hierarchy
Stemmer.Cvb.Collections.GenericReadOnlyCollectionT
Namespace: Stemmer.Cvb.Collections.Generic
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
Type Parameters
- T
- Type of elements in this collection.
The ReadOnlyCollectionT type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ReadOnlyCollectionT |
Creates a new ReadOnlyCollection wrapping the given
collection.
|
Properties
Name | Description | |
---|---|---|
Count |
Gets the number of items in this collection.
| |
Items |
Gets the collection this ReadOnlyCollection wraps.
|
Methods
Name | Description | |
---|---|---|
Contains |
Determines whether the item is in this collection.
| |
CopyTo |
Copies the entire collection to a compatible one-dimensional
array, starting at the specified
arrayIndex.
| |
Equals | (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 |
Returns an enumerator that iterates through this collection.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
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.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
ICollectionTAdd | Adds an item to the ICollectionT. | |
ICollectionTClear | Removes all items from the ICollectionT. | |
IEnumerableGetEnumerator | Returns an enumerator that iterates through a collection. | |
ICollectionTIsReadOnly | Gets a value indicating whether the ICollectionT is read-only. | |
ICollectionTRemove | Removes the first occurrence of a specific object from the ICollectionT. |
Remarks
This class wraps another collection as a read-only view on it.
This implementation is needed as this is only present in .Net 4.5 and above.
See Also