Compares the two arrays.
public static int Compare<T>(T[]? array1, T[]? array2)
parameter | description |
---|---|
array1 | The first array. |
array2 | The second array. |
The result of a lexicographical comparison of the array items.
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. |
The result of a lexicographical comparison of the array items.