Removes the first occurrence of the specified object from the list.
- item
- The object to be removed from the list.
true if item is successfully removed; otherwise, false.
This method uses the default equality comparer for type T to determine equality of list elements. The default equality comparer for element type T is defined in the Description section of this (class .) specification.
This method is an O(n) operation, where n is List<T>.Count.
Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0