Stack: Contains

Contains

Determines whether an element is in the Stack.



 Public Function Contains(
	  ByRef Value As Variant ) As Boolean

Parameters

Value
[ByRef] Variant. The value to locate in the Stack.

Return Values

Boolean -  True if Value is found in the Stack; otherwise, False.

Remarks

This method determines equality by calling Object.Equals.

This method performs a linear search; therefore, this method is an O(n) operation, where n is Count.

See Also

Project CorLib Overview

Class Stack Overview