Click or drag to resize
BagTRemove 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.

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 approximated constant time, regardless of the number of items in the bag.

See Also