Removes the first occurrence of a specified item from the collection.
public bool Remove(
- Type: T
The object to remove from the collection.
Type: System.Booleantrue if item was successfully removed from the collection; otherwise, false.
The elements in the collection that follow the removed element move up to occupy the vacated spot and their indices are updated accordingly.
Supported in: 4.6, 4.5, 4, 3.5, 3.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1