Click or drag to resize

ArrayExtensionsAreEqualT Method

Tests whether two arrays are equal.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static bool AreEqual<T>(
	T[]? x,
	T[]? y,
	IEqualityComparer<T>? comparer = null
)

Parameters

x  T
The x array.
y  T
The y array.
comparer  IEqualityComparerT  (Optional)
The comparer that is used to compare two elements. If null is provided, then the default equality comparer is used.

Type Parameters

T
The element type of the arrays.

Return Value

Boolean
true if the arrays are equal, or both are null; otherwise, false.
See Also