ReadOnlyCollectionBase< T >

ReadOnlyCollectionBase< T > class

Represents a read-only collection of objects.

Methods

NameDescription
AddThis is the stub implementation of ICollection’s Add method, that only throws NotSupportedException
get_CountGets the number of objects contained in the object.
GetEnumeratorReturns an enumerator for this collection.
idx_getReturns the element at the specified index.
idx_setReturns the element at the specified index.
ToListConverts the collection to a list of objects.