IList Methods
Collapse the table of content
Expand the table of content

IList Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The IList type exposes the following members.

Public method Add Adds an item to the IList.
Public method Clear Removes all items from the IList.
Public method Contains Determines whether the IList contains a specific value.
Public method CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection.)
Public method GetEnumerator Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public method IndexOf Determines the index of a specific item in the IList.
Public method Insert Inserts an item to the IList at the specified index.
Public method Remove Removes the first occurrence of a specific object from the IList.
Public method RemoveAt Removes the IList item at the specified index.

Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast<TResult> Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)

© 2016 Microsoft