21.345. Class ByteArrayComparer

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

Comparer for byte[] instances

public class ByteArrayComparer : IEqualityComparer<byte[]>

21.345.1. Inheritance

objectByteArrayComparer

21.345.2. Implements

IEqualityComparer<byte[]>

21.345.3. Inherited Members

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

21.345.4. Methods

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

Compares 2 byte[] instances

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

21.345.4.1.1. Parameters

x byte[]?

First byte[] instance

y byte[]?

Second byte[] instance

21.345.4.1.2. Returns

bool

true when the 2 instances are equal, false otherwise

21.345.4.2. GetHashCode(byte[]?)

Compute a hash code for a byte[] instance

public int GetHashCode(byte[]? obj)

21.345.4.2.1. Parameters

obj byte[]?

The byte[] instance

21.345.4.2.2. Returns

int

The hash code