Click or drag to resize
OrderedBagTRemove Method
Searches the bag for one item equal to item, and if found, removes it from the bag. If not found, the bag is unchanged. If more than one item equal to item, the item that was last inserted is removed.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public override sealed bool Remove(
	T item
)

Parameters

item
Type: T
The item to remove.

Return Value

Type: Boolean
True if item was found and removed. False if item was not in the bag.

Implements

ICollectionTRemove(T)
Remarks

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

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

See Also