Foley .NET Utilities Class Library

List2Base.Contains Method (Object)

Determines whether the specified Object is in the list.

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

Parameters

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

Return Value

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

Implements

IList.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

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