Determines whether an element is in the
ListT.
Namespace: System.Collections.GenericAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public bool Contains(
T item
)
Parameters
- item
- Type: T
The object to locate in the ListT. The value can be null for reference types.
Return Value
Type:
Booleantrue if
item is found in the
ListT; otherwise, false.
Implements
ICollectionTContains(T)See Also