Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

View..::..Remove Method

Searches the underlying set for an item equal to item, and if found, removes it from the set. If not found, the set is unchanged. If the item is outside the range of this view, the set is unchanged.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public bool Remove(
	T item
)
Public Function Remove ( _
	item As T _
) As Boolean
public:
bool^ Remove(
	T item
)

Parameters

item
Type: T
The item to remove.

Return Value

True if item was found and removed. False if item was not in the set, or was outside the range of this view.

Remarks


Equality between items is determined by the comparison instance or delegate used to create the set.

Removing an item from the set takes time O(log N), where N is the number of items in the set.