Click or drag to resize
ArrayList.Add Method
Adds an object to the end of the ArrayList.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual int Add(
	Object value
)

Parameters

value
Type: System.Object
The Object to be added to the end of the ArrayList. The value can be null.

Return Value

Type: Int32
The ArrayList index at which the value has been added.

Implements

IList.Add(Object)
Exceptions
ExceptionCondition
NotSupportedExceptionThe ArrayList is read-only.-or- The ArrayList has a fixed size.
See Also