Click or drag to resize
ICollectionT Interface
Defines methods to manipulate generic collections.

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public interface ICollection<T> : IEnumerable<T>, 
	IEnumerable

Type Parameters

T
The type of the elements in the collection.

The ICollectionT type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds an item to the ICollectionT.
Public methodClear
Removes all items from the ICollectionT.
Public methodContains
Determines whether the ICollectionT contains a specific value.
Public methodCopyTo
Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from IEnumerableT.)
Top
Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the ICollectionT.
Public propertyIsReadOnly
Gets a value indicating whether the ICollectionT is read-only.
Top
See Also