Removes the first occurrence of a specific object from the
CollectionT.
Namespace: System.Collections.ObjectModelAssembly: 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 CollectionT. 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 original
CollectionT.
See Also