CollectionBaseTContains Method |
Determines if the collection contains a particular item. This default implementation
iterates all of the items in the collection via GetEnumerator, testing each item
against item using IComparable<T>.Equals or
Object.Equals.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic virtual bool Contains(
T item
)
public:
virtual bool Contains(
T item
)
Parameters
- item
- Type: T
The item to check for in the collection.
Return Value
Type:
BooleanTrue if the collection contains
item, false otherwise.
Implements
ICollectionTContains(T)
RemarksYou should strongly consider overriding this method to provide
a more efficient implementation, or if the default equality comparison
is inappropriate.
See Also