Returns true if the arrays are equal.
public static bool AreEqual<T>(T[]? array1, T[]? array2)
parameter | description |
---|---|
array1 | The first array. |
array2 | The second array. |
true if the arrays are both null, or if they both have equal length and the first item of the first array is equal to the first item of the second array, etc.
Returns true if the arrays are equal.
public static bool AreEqual<T>(T[]? array1, T[]? array2, IEqualityComparer<T> comparer)
parameter | description |
---|---|
array1 | The first array. |
array2 | The second array. |
comparer | The equality comparer to use. |
true if the arrays are both null, or if they both have equal length and the first item of the first array is equal to the first item of the second array, etc.