Determines if this bag contains an item equal to item. The bag
is not changed.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic override sealed bool Contains(
T item
)
public:
virtual bool Contains(
T item
) override sealed
Parameters
- item
- Type: T
The item to search for.
Return Value
Type:
BooleanTrue if the bag contains
item. False if the bag does not contain
item.
Implements
ICollectionTContains(T)
RemarksSearching the bag for an item takes time O(log N), where N is the number of items in the bag.
See Also