26.344. Class ByteArrayComparer

Namespace: ArmoniK.Core.Utils
Assembly: ArmoniK.Core.Utils.dll

Comparer for byte[] instances

public class ByteArrayComparer : IEqualityComparer<byte[]>

26.344.1. Inheritance

objectByteArrayComparer

26.344.2. Implements

IEqualityComparer<byte[]>

26.344.3. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

26.344.4. Methods

26.344.4.1. Equals(byte[]?, byte[]?)

Compares 2 byte[] instances

public bool Equals(byte[]? x, byte[]? y)

26.344.4.1.1. Parameters

x byte[]?

First byte[] instance

y byte[]?

Second byte[] instance

26.344.4.1.2. Returns

bool

true when the 2 instances are equal, false otherwise

26.344.4.2. GetHashCode(byte[]?)

Compute a hash code for a byte[] instance

public int GetHashCode(byte[]? obj)

26.344.4.2.1. Parameters

obj byte[]?

The byte[] instance

26.344.4.2.2. Returns

int

The hash code