Foley .NET Utilities Class Library

Collection2Base.IsContainedIn Method 

Determins if the specified value is contained in the specified collection.

[Visual Basic]
Protected Function IsContainedIn( _
   ByVal collection As ICollection, _
   ByVal value As Object _
) As Boolean
[C#]
protected bool IsContainedIn(
   ICollection collection,
   object value
);

Parameters

collection
The ICollection used to test the specified Object against.
value
The Object used to see if it is contained in the specified ICollection.

Return Value

true if value is contained in collection; otherwise false

See Also

Collection2Base Class | Collection2Base Members | Foley.Utilities.Collections Namespace