Show / Hide Table of Contents

Class ByteArrayEqualityComparer

The ByteArrayEqualityComparer class implements equality comparision for byte arrays.

Inheritance
System.Object
ByteArrayEqualityComparer
Namespace: LambdaSharp.DynamoDB.Serialization.Utility
Assembly: LambdaSharp.DynamoDB.Serialization.dll
Syntax
public class ByteArrayEqualityComparer : IEqualityComparer<byte[]>

Fields

Instance

The Instance class field exposes a reusable instance of the ByteArrayEqualityComparer class.

Declaration
public static readonly ByteArrayEqualityComparer Instance
Field Value
Type Description
ByteArrayEqualityComparer

Methods

Equals(Byte[], Byte[])

Determines whether the specified objects are equal.

Declaration
public bool Equals(byte[] left, byte[] right)
Parameters
Type Name Description
System.Byte[] left

The first object of type T to compare.

System.Byte[] right

The second object of type T to compare.

Returns
Type Description
System.Boolean

true if the specified objects are equal; otherwise, false.

GetHashCode(Byte[])

Returns a hash code for the specified object.

Declaration
public int GetHashCode(byte[] obj)
Parameters
Type Name Description
System.Byte[] 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.

In This Article
Back to top Generated by DocFX