This documentation is archived and is not being maintained.
ICollection Members
Visual Studio 2008
Defines size, enumerators, and synchronization methods for all nongeneric collections.
The ICollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
CopyTo | Copies the elements of the ICollection to an Array, starting at a particular Array index. |
|
GetEnumerator | Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.) |
| Name | Description | |
|---|---|---|
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
Count | Gets the number of elements contained in the ICollection. |
|
IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). |
|
SyncRoot | Gets an object that can be used to synchronize access to the ICollection. |
Show: