Interface IList<T>

Namespace: System.Collections.Generic
public interface IList<T> : ICollection<T>, IEnumerable<T>, ICollection, IEnumerable

Summary

Represents a strongly typed list of objects that can be accessed by index. Provides methods for manipulating the list.

Remarks

The IList<T> interface is the base interface for generic lists. It adds indexed access to the functionality provided by the ICollection<T> interface. Objects that implement IList<T> can be accessed by their zero-based index. The index is a numeric value that indicates the position of an element in the list.

The IList<T> interface includes methods for inserting, removing, and searching for elements. It also includes properties for getting the number of elements in the list and for getting or setting an element at a specific index.

All generic collections in the System.Collections.Generic namespace implement IList<T> if they support indexed access. For example, the List<T> class implements IList<T>.

Members

This interface inherits members from the following interfaces: