Removes the first occurrence of a specific object from the
ListT.
Namespace: System.Collections.GenericAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public bool Remove(
T item
)
Parameters
- item
- Type: T
The object to remove from the ListT. The value can be null for reference types.
Return Value
Type:
Booleantrue if
item is successfully removed; otherwise, false. This method also returns false if
item was not found in the
ListT.
See Also