Searches the list for the first item that compares equal to item.
If one is found, it is removed. Otherwise, the list is unchanged.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic override bool Remove(
T item
)
public:
virtual bool Remove(
T item
) override
Parameters
- item
- Type: T
The item to remove from the list.
Return Value
Type:
BooleanTrue if an item was found and removed that compared equal to
item. False if no such item was in the list.
Implements
ICollectionTRemove(T)ICollectionTRemove(T)
RemarksEquality in the list is determined by the default sense of
equality for T. If T implements IComparable<T>, the
Equals method of that interface is used to determine equality. Otherwise,
Object.Equals is used to determine equality.
See Also