[]
Represents a base class for strongly typed collection of T
objects.
public class ItemCollection<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Name | Description |
---|---|
T | A type of collection items. |
Name | Description |
---|---|
ItemCollection() |
Name | Description |
---|---|
Count | Gets the number of |
IsReadOnly | Gets a value indicating whether the ItemCollection<T> is read-only. |
this[int] | Gets or sets a specific |
Name | Description |
---|---|
Add(T) | Adds a |
AddRange(IEnumerable<T>) | Adds a collection of |
Clear() | Removes all items from the ItemCollection<T>. |
Contains(T) | Gets a value indicating whether the ItemCollection<T> contains the specified |
CopyTo(T[], int) | Copies the objects in the ItemCollection<T> to a |
GetEnumerator() | Returns an enumerator that iterates through the ItemCollection<T>. |
IndexOf(T) | Determines the index of a specific |
Insert(int, T) | Inserts a new |
Remove(T) | Removes the specified |
RemoveAt(int) | Removes a |
ToArray() | Copies the elements of the ItemCollection<T> to a new array. |