8 [__DynamicallyInvokable]
53 [__DynamicallyInvokable]
78 bool IList.IsFixedSize
89 bool ICollection.IsSynchronized
99 object ICollection.SyncRoot
113 object IList.this[
int index]
117 if (index < 0 || index >=
Count)
119 throw new ArgumentOutOfRangeException(
"index", Environment.GetResourceString(
"ArgumentOutOfRange_Index"));
125 if (index < 0 || index >=
Count)
127 throw new ArgumentOutOfRangeException(
"index", Environment.GetResourceString(
"ArgumentOutOfRange_Index"));
131 OnSet(index, obj, value);
159 [__DynamicallyInvokable]
172 [__DynamicallyInvokable]
175 if (index < 0 || index >=
Count)
213 bool IList.Contains(
object value)
222 int IList.Add(
object value)
243 void IList.Remove(
object value)
249 throw new ArgumentException(Environment.GetResourceString(
"Arg_RemoveArgNotFound"));
267 int IList.IndexOf(
object value)
279 void IList.Insert(
int index,
object value)
281 if (index < 0 || index >
Count)
283 throw new ArgumentOutOfRangeException(
"index", Environment.GetResourceString(
"ArgumentOutOfRange_Index"));
301 [__DynamicallyInvokable]
311 protected virtual void OnSet(
int index,
object oldValue,
object newValue)
318 protected virtual void OnInsert(
int index,
object value)
330 protected virtual void OnRemove(
int index,
object value)
350 protected virtual void OnSetComplete(
int index,
object oldValue,
object newValue)
virtual bool IsFixedSize
Gets a value indicating whether the T:System.Collections.ArrayList has a fixed size.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
Provides the abstract base class for a strongly typed collection.
virtual void Insert(int index, object value)
Inserts an element into the T:System.Collections.ArrayList at the specified index.
virtual void RemoveAt(int index)
Removes the element at the specified index of the T:System.Collections.ArrayList.
virtual void OnClearComplete()
Performs additional custom processes after clearing the contents of the T:System.Collections....
Represents a non-generic collection of objects that can be individually accessed by index.
void RemoveAt(int index)
Removes the element at the specified index of the T:System.Collections.CollectionBase instance....
virtual void OnSet(int index, object oldValue, object newValue)
Performs additional custom processes before setting a value in the T:System.Collections....
virtual int Count
Gets the number of elements actually contained in the T:System.Collections.ArrayList.
virtual void OnRemoveComplete(int index, object value)
Performs additional custom processes after removing an element from the T:System.Collections....
The exception that is thrown when the value of an argument is outside the allowable range of values a...
bool IsReadOnly
Gets a value indicating whether the T:System.Collections.IList is read-only.
IEnumerator GetEnumerator()
Returns an enumerator that iterates through the T:System.Collections.CollectionBase instance.
virtual void Clear()
Removes all elements from the T:System.Collections.ArrayList.
virtual void OnInsertComplete(int index, object value)
Performs additional custom processes after inserting a new element into the T:System....
ArrayList InnerList
Gets an T:System.Collections.ArrayList containing the list of elements in the T:System....
virtual bool IsSynchronized
Gets a value indicating whether access to the T:System.Collections.ArrayList is synchronized (thread ...
Exposes an enumerator, which supports a simple iteration over a non-generic collection....
Provides information about, and means to manipulate, the current environment and platform....
virtual bool IsReadOnly
Gets a value indicating whether the T:System.Collections.ArrayList is read-only.
virtual bool Contains(object item)
Determines whether an element is in the T:System.Collections.ArrayList.
IList List
Gets an T:System.Collections.IList containing the list of elements in the T:System....
int Capacity
Gets or sets the number of elements that the T:System.Collections.CollectionBase can contain.
virtual void OnClear()
Performs additional custom processes when clearing the contents of the T:System.Collections....
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
virtual void CopyTo(Array array)
Copies the entire T:System.Collections.ArrayList to a compatible one-dimensional T:System....
virtual object SyncRoot
Gets an object that can be used to synchronize access to the T:System.Collections....
CollectionBase()
Initializes a new instance of the T:System.Collections.CollectionBase class with the default initial ...
virtual int Add(object value)
Adds an object to the end of the T:System.Collections.ArrayList.
CollectionBase(int capacity)
Initializes a new instance of the T:System.Collections.CollectionBase class with the specified capaci...
virtual void OnValidate(object value)
Performs additional custom processes when validating a value.
int Count
Gets the number of elements contained in the T:System.Collections.CollectionBase instance....
virtual void OnSetComplete(int index, object oldValue, object newValue)
Performs additional custom processes after setting a value in the T:System.Collections....
virtual void OnInsert(int index, object value)
Performs additional custom processes before inserting a new element into the T:System....
void Clear()
Removes all objects from the T:System.Collections.CollectionBase instance. This method cannot be over...
Specifies that the class can be serialized.
virtual void OnRemove(int index, object value)
Performs additional custom processes when removing an element from the T:System.Collections....
virtual IEnumerator GetEnumerator()
Returns an enumerator for the entire T:System.Collections.ArrayList.
Defines size, enumerators, and synchronization methods for all nongeneric collections.
virtual int IndexOf(object value)
Searches for the specified T:System.Object and returns the zero-based index of the first occurrence w...
virtual int Capacity
Gets or sets the number of elements that the T:System.Collections.ArrayList can contain.
void CopyTo(Array array, int index)
Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a parti...
Supports a simple iteration over a non-generic collection.
Implements the T:System.Collections.IList interface using an array whose size is dynamically increase...