ReadOnlyCollectionT Class

CVB.Net Documentation
Read-only, generic collection of elements.
Inheritance Hierarchy

SystemObject
  Stemmer.Cvb.Collections.GenericReadOnlyCollectionT

Namespace:  Stemmer.Cvb.Collections.Generic
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public class ReadOnlyCollection<T> : ICollection<T>, 
	IEnumerable<T>, IEnumerable

Type Parameters

T
Type of elements in this collection.

The ReadOnlyCollectionT type exposes the following members.

Constructors

  NameDescription
Public methodReadOnlyCollectionT
Creates a new ReadOnlyCollection wrapping the given collection.
Top
Properties

  NameDescription
Public propertyCount
Gets the number of items in this collection.
Protected propertyItems
Gets the collection this ReadOnlyCollection wraps.
Top
Methods

  NameDescription
Public methodContains
Determines whether the item is in this collection.
Public methodCopyTo
Copies the entire collection to a compatible one-dimensional array, starting at the specified arrayIndex.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through this collection.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implementationPrivate methodICollectionTAdd
Explicit interface implementationPrivate methodICollectionTClear
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
Explicit interface implementationPrivate propertyICollectionTIsReadOnly
Explicit interface implementationPrivate methodICollectionTRemove
Top
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

Reference