Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

ReadOnlyCollectionBase<(Of <(<'T>)>)>..::..Contains 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:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public virtual bool Contains(
	T item
)
Public Overridable Function Contains ( _
	item As T _
) As Boolean
public:
virtual bool^ Contains(
	T item
)

Parameters

item
Type: T
The item to check for in the collection.

Return Value

True if the collection contains item, false otherwise.

Remarks


You should strongly consider overriding this method to provide a more efficient implementation.