Mono Class Library: System.Collections.IList Overview | Members

System.Collections.IList.Add Method

Adds an item to the current instance. [Edit]

public int Add (object value)

Parameters

value
The object to add to the current instance. [Edit]

Returns

A int containing the index of the current instance into which the new element was inserted. [Edit]

Exceptions

TypeReason
NotSupportedExceptionThe current instance is read-only or has a fixed size. [Edit]

Remarks

Operation
As described above.

Usage
Use the IList.Add(object) method to add another element to the current instance. The index into which that element is added is implementation-dependent.

[Edit]

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0