Class ArrayEqualityComparer
This EqualityComparer can compare if an array of objects is equal to another array of objects by comparing the contained objects itself
Inheritance
System.Object
ArrayEqualityComparer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: OPTANO.Modeling.Common
Assembly: Common.dll
Syntax
[Serializable]
public class ArrayEqualityComparer : IEqualityComparer<object[]>
Methods
Equals(Object[], Object[])
Determines whether the specified arrays are equal.
Declaration
public bool Equals(object[] x, object[] y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object[] | x | The first array to compare. |
| System.Object[] | y | The second array to compare. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the specified arrays are equal; otherwise, false. |
Implements
System.Collections.Generic.IEqualityComparer<T>.Equals(T, T)
GetHashCode(Object[])
Returns a hash code for the specified object.
Declaration
public int GetHashCode(object[] obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object[] | obj | The System.Object for which a hash code is to be returned. |
Returns
| Type | Description |
|---|---|
| System.Int32 | A hash code for the specified object. |
Implements
System.Collections.Generic.IEqualityComparer<T>.GetHashCode(T)
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | The type of |