Removes the first occurrence of a specific object from the Collection.

Namespace: MonoSoftware.Core.Collections
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public virtual bool Remove(
	KeyValuePair<TKey, TValue> item
)
Visual Basic
Public Overridable Function Remove ( 
	item As KeyValuePair(Of TKey, TValue)
) As Boolean
Visual C++
public:
virtual bool Remove(
	KeyValuePair<TKey, TValue> item
)
F#
abstract Remove : 
        item : KeyValuePair<'TKey, 'TValue> -> bool 
override Remove : 
        item : KeyValuePair<'TKey, 'TValue> -> bool 

Parameters

item
Type: System.Collections.Generic..::..KeyValuePair<(Of <(<'TKey, TValue>)>)>
The object to remove from the Collection.

Return Value

Type: Boolean
true if item was successfully removed from the Collection; otherwise, false. This method also returns false if item is not found in the original Collection.

Implements

ICollection<(Of <(<'T>)>)>..::..Remove(T)

See Also