OrderedSetTViewRemove 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: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic override sealed bool Remove(
T item
)
public:
virtual bool Remove(
T item
) override sealed
Parameters
- item
- Type: T
The item to remove.
Return Value
Type:
BooleanTrue if
item was found and removed. False if
item was not in the set, or
was outside the range of this view.
Implements
ICollectionTRemove(T)ICollectionTRemove(T)
RemarksEquality 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.
See Also