 | CollectionUtilsListEqual Method |
Compares the two passed lists for equality. Two lists are considered equal, if they contain equal elements in the
same order.
Namespace: Slash.Collections.UtilsAssembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntaxpublic static bool ListEqual(
IList list1,
IList list2
)
Public Shared Function ListEqual (
list1 As IList,
list2 As IList
) As Boolean
public:
static bool ListEqual(
IList^ list1,
IList^ list2
)
static member ListEqual :
list1 : IList *
list2 : IList -> bool
Parameters
- list1
- Type: System.CollectionsIList
First list to compare. - list2
- Type: System.CollectionsIList
Second list to compare.
Return Value
Type:
Booleantrue, if either both or no list is
null, both lists contain the same number of elements, and all
elements are equal and in the same order.
See Also