Foley .NET Utilities Class Library

SetBase.Contains Method (Object)

Determines whether the specified Object is in the set.

[Visual Basic]
Overridable Overloads Public Function Contains( _
   ByVal value As Object _
) As Boolean Implements _
   ISet.Contains
[C#]
public virtual bool Contains(
   object value
);

Parameters

value
The Object to check if it is contained in the set.

Return Value

true if the Object is found in the set; otherwise, false.

Implements

ISet.Contains

Remarks

This method determines equality by calling Equals. Keep in mind that the Object to locate can be a null reference (Nothing in Visual Basic). If you do not want this behaviour you must override this method.

See Also

SetBase Class | SetBase Members | Foley.Utilities.Collections Namespace | SetBase.Contains Overload List