ArrayExtensionsAreEqualT Method |
Tests whether two arrays are equal.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic 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
Booleantrue if the arrays are equal, or both are
null; otherwise,
false.
See Also