Click or drag to resize
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.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public virtual bool Contains(
	T item
)

Parameters

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

Return Value

Type: Boolean
True if the collection contains item, false otherwise.

Implements

ICollectionTContains(T)
Remarks
You should strongly consider overriding this method to provide a more efficient implementation, or if the default equality comparison is inappropriate.
See Also