Foley .NET Utilities Class Library

IList2.Remove Method (Object)

When implemented by a class, removes the first occurrence of a specific object from the list.

[Visual Basic]
Function Remove( _
   ByVal value As Object _
) As Boolean
[C#]
bool Remove(
   object value
);

Parameters

value
The object to remove from the list.

Return Value

true if the list is modified; otherwise false.

Remarks

This method hides the IList method that returns void. You may want to do an explicit interface method implementation for the IList version to be completely compatible.

Exceptions

Exception TypeCondition
System.NotSupportedException

The list is read-only.

-or-

The list has a fixed size.

See Also

IList2 Interface | IList2 Members | Foley.Utilities.Collections Namespace | IList2.Remove Overload List