Click or drag to resize
OrderedBagTViewRemove Method
Searches the underlying bag for an item equal to item, and if found, removes it from the bag. If not found, the bag is unchanged. If the item is outside the range of this view, the bag is unchanged.

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, or was outside the range of this view.

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