Foley .NET Utilities Class Library

LinkedList.Contains Method (ICollection)

Determines whether all the elements in the specified collection are contained in the LinkedList contains.

[Visual Basic]
Overrides Overloads Public Function Contains( _
   ByVal collection As ICollection _
) As Boolean Implements _
   IList2.Contains
[C#]
public override bool Contains(
   ICollection collection
);

Parameters

collection
The ICollection whose elements are to be checked if all of its elements are contained in the list.

Return Value

true if all the elements of the ICollection are found in the LinkedList; otherwise, false.

Implements

IList2.Contains

Exceptions

Exception TypeCondition
System.NullReferenceException The collection is a null reference (Nothing in Visual Basic).

See Also

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