METHOD
List<T>.Remove
Removes the first matching item and reports whether an item was removed.
Formal Syntax & Structure
csharp syntaxcsharp
items.Remove(value)Working Example
Example Snippetcsharp
var items = new System.Collections.Generic.List<int> { 2, 2 }; bool removed = items.Remove(2);