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

System.Collections.IList.Remove Method

Removes the first occurrence of a specified object from the current instance. [Edit]

public void Remove (object value)

Parameters

value
The object to remove from the current instance. [Edit]

Exceptions

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

Remarks

Operation

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.

Note to Inheritors
The default implementations of this method use object.Equals(object) to search for value in the current instance.

Usage
Use IList.Remove(object) to delete a specified object from the current instance.

[Edit]

Requirements

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