Method Remove
Remove(T)
Remove a particular item from this collection. If the collection has bag semantics only one copy equivalent to the supplied item is removed.
Declaration
bool Remove(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The value to remove. |
Returns
Type | Description |
---|---|
System.Boolean | True if the item was found (and removed). |
Remove(T, out T)
Remove a particular item from this collection if found. If the collection has bag semantics only one copy equivalent to the supplied item is removed, which one is implementation dependent. If an item was removed, report a binary copy of the actual item removed in the argument.
Declaration
bool Remove(T item, out T removeditem)
Parameters
Type | Name | Description |
---|---|---|
T | item | The value to remove. |
T | removeditem | The value removed if any. |
Returns
Type | Description |
---|---|
System.Boolean | True if the item was found (and removed). |