extends System.Collections.ICollection
extends System.Collections.IEnumerable
| Variables: |
|---|
public System.Boolean IsFixedSize |
public System.Boolean IsReadOnly |
public System.Object Item |
| Constructors: |
|---|
| Functions: |
|---|
public System.Int32 Add(System.Object value) Adds an item to the current instance. Parameter value: The System.Object to add to the current instance. Returns: A System.Int32 containing the index of the current instance into which the new element was inserted. Throws: : The current instance is read-only or has a fixed size. As described above. Use the System.Collections.IList.Add(System.Object) method to add another element to the current instance. The index into which that element is added is implementation-dependent. |
public System.Void Clear() Removes all items from the current instance. Throws: : The current instance is read-only. As described above. Implementations of this method can vary in how a call to this method affects the capacity of a list. Typically, the count is set to zero. The capacity can be set to zero, some default, or remain unchanged. Use this method to delete all values from the current instance. |
public System.Boolean Contains(System.Object value) Determines whether the current instance contains a specific value. Parameter value: The System.Object to locate in the current instance. Returns: true if the System.Object is found in the current instance; otherwise, false. As described above. Use the System.Collections.IList.Contains(System.Object) method to determine if a particular System.Object is an element of the current instance. |
public System.Int32 IndexOf(System.Object value) Determines the index of a specific item in the current instance. Parameter value: The System.Object to locate in the current instance. Returns: The index of value if found in the current instance; otherwise, -1. As described above. The default implementations of this method use System.Object.Equals(System.Object) to search for value in the current instance. Use System.Collections.IList.IndexOf(System.Object) to determine if a System.Object is contained in the current instance and, if it is contained, its index in the current instance. |
public System.Void Insert(System.Int32 index, System.Object value) Inserts an item to the current instance at the specified position. Parameter index: A System.Int32 that specifies the zero-based index at which value is inserted. Parameter value: The System.Object to insert into the current instance. Throws: : index is not a valid index in the current instance (i.e. is greater than the number of elements in the current instance). Throws: : The current instance is read-only or has a fixed size. If index equals the number of items in the System.Collections.IList, then value is required to be appended to the end of the current instance. Use System.Collections.IList.Insert(System.Int32,System.Object) to place a new element into a specific position in the current instance. |
public System.Void Remove(System.Object value) Removes the first occurrence of a specified System.Object from the current instance. Parameter value: The System.Object to remove from the current instance. Throws: : The current instance is read-only or has a fixed size. As described above. In addition, if value is null or is not found in the current instance, it is required that no exception be thrown and the current instance remain unchanged. The default implementations of this method use System.Object.Equals(System.Object) to search for value in the current instance. Use System.Collections.IList.Remove(System.Object) to delete a specified System.Object from the current instance. |
public System.Void RemoveAt(System.Int32 index) Removes the item at the specified index of the current instance. Parameter index: A System.Int32 that specifies the zero-based index of the item to remove. Throws: : index is not a valid index in current instance. Throws: : The current instance is read-only or has a fixed size. As described above. Use System.Collections.IList.RemoveAt(System.Int32) to delete a specified System.Object from the current instance. |
| Functions inherited from System.Collections.ICollection: |
|---|
public System.Void CopyTo(System.Array array, System.Int32 index) Copies the elements from the current instance to the specified System.Array, starting at the specified index in the array. Parameter array: A one-dimensional, zero-based System.Array that is the destination of the elements copied from the current instance. Parameter index: A System.Int32 that specifies the zero-based index in array at which copying begins. Throws: : array is null. Throws: : index < 0. Throws: : array has more than one dimension. index is greater than or equal to array.Length. The sum of index and the System.Collections.ICollection.Count of the current instance is greater than array.Length. Throws: : At least one element in the current instance is not assignment-compatible with the type of array. As described above. Use this method to copy from a collection to a System.Array. |
| Functions inherited from System.Collections.IEnumerable: |
|---|
public System.Collections.IEnumerator GetEnumerator() Returns a System.Collections.IEnumerator that can be used for simple iteration over a collection. Returns: A System.Collections.IEnumerator that can be used for simple iteration over a collection. As described above. For a detailed description regarding the use of an enumerator, see System.Collections.IEnumerator. |
| Functions inherited from System.Collections.IEnumerable: |
|---|
public System.Collections.IEnumerator GetEnumerator() Returns a System.Collections.IEnumerator that can be used for simple iteration over a collection. Returns: A System.Collections.IEnumerator that can be used for simple iteration over a collection. As described above. For a detailed description regarding the use of an enumerator, see System.Collections.IEnumerator. |