Defines size, enumerators, and synchronization methods for all nongeneric collections.
Assembly: mscorlib (in mscorlib.dll)
<[%$TOPIC/b1ht6113_en-us_VS_110_1_0_0_0_0%](True)> _ Public Interface ICollection _ Inherits [%$TOPIC/b1ht6113_en-us_VS_110_1_0_0_0_1%]
[[%$TOPIC/b1ht6113_en-us_VS_110_1_0_1_0_0%](true)] public interface ICollection : [%$TOPIC/b1ht6113_en-us_VS_110_1_0_1_0_1%]
[[%$TOPIC/b1ht6113_en-us_VS_110_1_0_2_0_0%](true)] public interface class ICollection : [%$TOPIC/b1ht6113_en-us_VS_110_1_0_2_0_1%]
[<[%$TOPIC/b1ht6113_en-us_VS_110_1_0_3_0_0%](true)>] type ICollection = interface interface [%$TOPIC/b1ht6113_en-us_VS_110_1_0_3_0_1%] end
public interface ICollection extends [%$TOPIC/b1ht6113_en-us_VS_110_1_0_4_0_0%]
Thetype exposes the following members.
|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.)|
|CastTResult||Overloaded. Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)|
|CastTResult||Overloaded. (Defined by Enumerable.)|
|OfTypeTResult||Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)|
|OfTypeTResult||Overloaded. (Defined by Enumerable.)|
The interface is the base interface for classes in the System.Collections namespace.
The interface extends IEnumerable; IDictionary and IList are more specialized interfaces that extend . An IDictionary implementation is a collection of key/value pairs, like the Hashtable class. An IList implementation is a collection of values and its members can be accessed by index, like the ArrayList class.
For the generic version of this interface, see System.Collections.GenericICollectionT.
.NET FrameworkSupported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client ProfileSupported in: 4, 3.5 SP1
XNA FrameworkSupported in: 3.0, 2.0, 1.0
Portable Class LibrarySupported in: Portable Class Library
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8