Table of Contents

Class StableHashExtensions

Namespace
XENBIT.ResQueServe.Core.Extensions
Assembly
RQS.Core.dll
public static class StableHashExtensions
Inheritance
StableHashExtensions
Inherited Members

Methods

StableEquals(IStableHash?, IStableHash?)

Compares two IStableHash instances for equality based on their stable hash values.

public static bool StableEquals(this IStableHash? a, IStableHash? b)

Parameters

a IStableHash

The first instance to compare.

b IStableHash

The second instance to compare.

Returns

bool

true if both instances are the same reference, or if both are non-null and have equal stable hash values; otherwise, false.

Remarks

This method provides a consistent equality comparison that relies on GetStableHash() rather than default reference or record equality. This is particularly useful when comparing interface types where the underlying implementations may differ but represent semantically equivalent data.