Represents a non-generic collection of objects that can be individually accessed by index.
Assemblies: System.Runtime (in System.Runtime.dll)
mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|Count||Gets the number of elements contained in the ICollection. (Inherited from ICollection.)|
|IsFixedSize||Gets a value indicating whether the has a fixed size.|
|IsReadOnly||Gets a value indicating whether the is read-only.|
|IsSynchronized||Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from ICollection.)|
|Item||Gets or sets the element at the specified index.|
|SyncRoot||Gets an object that can be used to synchronize access to the ICollection. (Inherited from ICollection.)|
|Add||Adds an item to the .|
|Clear||Removes all items from the .|
|Contains||Determines whether the contains a specific value.|
|CopyTo||Copies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection.)|
|GetEnumerator||Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)|
|IndexOf||Determines the index of a specific item in the .|
|Insert||Inserts an item to the at the specified index.|
|Remove||Removes the first occurrence of a specific object from the .|
|RemoveAt||Removes the item at the specified index.|
|AsParallel()||Overloaded. Enables parallelization of a query. (Defined by ParallelEnumerable.)|
|AsParallel()||Overloaded. (Defined by ParallelEnumerable.)|
|AsQueryable()||Overloaded. Converts an IEnumerable to an IQueryable. (Defined by Queryable.)|
|AsQueryable()||Overloaded. (Defined by Queryable.)|
|Cast<TResult>()||Overloaded. Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)|
|Cast<TResult>()||Overloaded. (Defined by Enumerable.)|
|OfType<TResult>()||Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)|
|OfType<TResult>()||Overloaded. (Defined by Enumerable.)|
is a descendant of the ICollection interface and is the base interface of all non-generic lists. implementations fall into three categories: read-only, fixed-size, and variable-size. A read-only cannot be modified. A fixed-size does not allow the addition or removal of elements, but it allows the modification of existing elements. A variable-size allows the addition, removal, and modification of elements.
For the generic version of this interface, see System.Collections.Generic::IList<T>.
.NET FrameworkSupported in: 4.5.3, 4, 3.5, 3.0, 2.0, 1.1, 1.0
.NET Framework Client ProfileSupported in: 4, 3.5 SP1
Portable Class LibrarySupported in: Portable Class Library
.NET for Windows Store appsSupported in: Windows 8
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.