ArrayUtility.Compare<T> method (1 of 2)

Compares the two arrays.

public static int Compare<T>(T[]? array1, T[]? array2)
parameter description
array1 The first array.
array2 The second array.

Return Value

The result of a lexicographical comparison of the array items.

See Also


ArrayUtility.Compare<T> method (2 of 2)

Compares the two arrays.

public static int Compare<T>(T[]? array1, T[]? array2, IComparer<T> comparer)
parameter description
array1 The first array.
array2 The second array.
comparer Used to compare the two items.

Return Value

The result of a lexicographical comparison of the array items.

See Also