Search
CollectionBase(T) Members
Constructors Fields Properties Methods
 


An implementation of the IList<T> interface.

The following tables list the members exposed by the CollectionBase(T) type.

 Protected Constructors

  Name Description

CollectionBase

Initializes a new instance of the CollectionBase class.

 Protected Fields

  Name Description

InnerList

Gets a List<T> containing the list of elements in the collecion instance.

 Public Properties

  Name Description

Count

Gets the number of elements actually contained in the collection.

IsReadOnly

Gets a value indicating whether the collection is read-only.

Item

Gets or sets the element at the specified index.

 Public Methods

  Name Description

Add

Adds an object to the end of the collection.

Clear

Removes all elements from the collection.

Contains

Determines whether an element is in the collection.

CopyTo

 

GetEnumerator

Returns an enumerator that iterates through the collection.

IndexOf

Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection.

Insert

Inserts an element into the collection at the specified index.

Remove

Removes the first occurrence of a specific object from the collection.

RemoveAt

Removes the element at the specified index of the collection.

 See Also