Click or drag to resize
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.Utils
Assembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntax
public static bool ListEqual(
	IList list1,
	IList list2
)

Parameters

list1
Type: System.CollectionsIList
First list to compare.
list2
Type: System.CollectionsIList
Second list to compare.

Return Value

Type: Boolean
true, 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