Contains()

Stack::Contains(const T&) const method

Checks if specific item is present in container; uses operator == for comparison.

virtual bool System::Collections::Generic::Stack<T>::Contains(const T &item) const

Arguments

ParameterTypeDescription
itemconst T&Item to look for.

Return Value

True if item is found, false otherwise.

See Also